Skip to content

Portable printf#162

Closed
Vladimir-csp wants to merge 3 commits intokmscon:mainfrom
Vladimir-csp:patch-1
Closed

Portable printf#162
Vladimir-csp wants to merge 3 commits intokmscon:mainfrom
Vladimir-csp:patch-1

Conversation

@Vladimir-csp
Copy link
Contributor

printf '\x1B... is not portable. For example it does not work if sh is dash. This change uses portable printf '%b' '\033... form.

Also removed useless cats, read file directly.

Fixed printf syntax to be portable and work in dash.
Got rid of useless `cat`s.

Signed-off-by: Vladimir-csp <[email protected]>
Signed-off-by: Vladimir-csp <[email protected]>
@michael-oberpriller
Copy link
Contributor

printf '\x1B... is not portable.

I believe this is fixed in #161.

Also removed useless cats, read file directly.

Not sure if it is necessary to remove cat, but on line 12 read -r kms_tty < /sys/class/tty/tty0/active should also use the new variable.

@Vladimir-csp
Copy link
Contributor Author

superseded by #163

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.

2 participants