Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ps.sh: improve posix sh compatibility #2497

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

spnethw
Copy link
Contributor

@spnethw spnethw commented Nov 6, 2024

read -n is not supported in dash (Ubuntu's default) and is undefined in posix sh.

Another option was to change the shebang to bash (and leave the ability to interrupt the pause by pressing any key, not just <Enter>). But I think a more universal solution would be preferable.

read -n is not supported in dash and is undefined in posix sh.
@elfmz elfmz merged commit d3d3401 into elfmz:master Nov 9, 2024
9 checks passed
@spnethw spnethw deleted the ps_sh_improve_posix_sh_compatibility branch November 10, 2024 09:46
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