-
Notifications
You must be signed in to change notification settings - Fork 13.7k
dump-ice-to-disk/check.sh: convert needless bashism in a /bin/sh script. #119992
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Thanks to tnn@ Ref. also rust-lang/rust#119992
This comment has been minimized.
This comment has been minimized.
can we change it to a bash shebang instead? the bash looks less bad than the posix shell. I don't think it matters which shebang you choose exactly because I don't expect the test suite to actually use the shebang, but it's nice to have one for tools like shellcheck. I'd recommend |
Kicking to get another CI run, last one seems to be a spurious failure. I'm not sure bash shebang is really a delta here, I'm inclined to land as-is. Long-term, #40713 is the real solution to readability. |
@rustbot author |
Well. It's evident that you have different priorities than I do, and if this was my code, I would not do that. I would instead put priority on "standard compliance" and "portability", instead of prioritizing "it looks prettier". But this isn't my code or my call to make. |
better idea: just rewrite the test in rust instead: #121876 |
Closing this pr as it's inactive and better off being rewritten as a rust test instead of this approach |
This script is marked with
#! /bin/sh
, but uses Bash-only constructs ("bashisms").In this case there is a corresponding portable POSIX shell construct, and this
change converts to use that, instead of insisting that
/bin/sh
must be Bash.