Skip to content

Comments

Remove bashism in kmscon-launch-gui.sh#161

Merged
kdj0c merged 1 commit intokmscon:mainfrom
aruhier:pr_fix_bashism
Dec 5, 2025
Merged

Remove bashism in kmscon-launch-gui.sh#161
kdj0c merged 1 commit intokmscon:mainfrom
aruhier:pr_fix_bashism

Conversation

@aruhier
Copy link
Contributor

@aruhier aruhier commented Dec 5, 2025

\x1B] is not recognized by sh or dash, but should be \033] instead.
It makes this script to fail to run a GUI with dash or sh.

Example:

> dash
$ printf "\x1B]setBackground\a"
\x1B]setBackground$
$ printf "\033]setBackground\a"
$

\x1B] is not recognized by sh or dash, but should be \033] instead.
It makes this script to fail to run a GUI with dash or sh.

Example:
    > sh
    $ printf "\x1B]setBackground\a"
    \x1B]setBackground$
    $ printf "\033]setBackground\a"
    $
@michael-oberpriller
Copy link
Contributor

Thanks for the PR. Can confirm that it fixes the script for dash. Hopefully kmscon-launch-gui is now fully posix compliant.

@kdj0c kdj0c merged commit 4336f67 into kmscon:main Dec 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants