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

more portable shebang for Bash and Perl script #7878

Closed
mpsuzuki opened this issue Aug 15, 2024 · 2 comments · Fixed by #7886
Closed

more portable shebang for Bash and Perl script #7878

mpsuzuki opened this issue Aug 15, 2024 · 2 comments · Fixed by #7886
Assignees

Comments

@mpsuzuki
Copy link
Contributor

mpsuzuki commented Aug 15, 2024

Version

5.7.2 and later

Description

Since #4941, all sh scripts are intentionally rewritten as Bash scripts, with "#!/bin/bash" shebang. As filed in #7244, most *BSD distributions do not place their prebuilt Bash in /bin/bash but in /usr/local/bin/bash (or /usr/pkg/bin/bash).

If the shebang is #!/usr/bin/env bash, the users on the systems with Bash (as far as PATH is configured appropriately) can execute the scripts without rewriting the shebang.

mpsuzuki@893b498 (for Bash) and mpsuzuki@583c70e (for Perl) are such changesets.

Such changesets are unacceptable? I guess such modification might have been discussed once, but I could not find.

@vifino
Copy link

vifino commented Aug 16, 2024

Hi! As one of the maintainers of the wolfSSL package in NixOS, I'd also like to see this happen. It would remove a bit of patching on our end.

@julek-wolfssl julek-wolfssl linked a pull request Aug 20, 2024 that will close this issue
@mpsuzuki
Copy link
Contributor Author

thanks everybody!

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 a pull request may close this issue.

3 participants