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

Use #!/usr/bin/env bash #18762

Merged
merged 5 commits into from
Nov 4, 2024
Merged

Use #!/usr/bin/env bash #18762

merged 5 commits into from
Nov 4, 2024

Conversation

emlowe
Copy link
Contributor

@emlowe emlowe commented Oct 24, 2024

After some testing on FreeBSD, which doesn't have /bin/bash - the wisdom of the internet suggests that using a shebang of #!/usr/bin/env bash is more cross-platform - and indeed this does work on FreeBSD and the other supported platforms (of course bash does have to exist somewhere in the path)

Apparently this is not guaranteed as some very esoteric systems have /bin/env but this is more cross platform than expecting/bin/bash

@emlowe emlowe added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Oct 24, 2024
@emlowe emlowe marked this pull request as ready for review November 1, 2024 21:46
@emlowe emlowe requested a review from a team as a code owner November 1, 2024 21:46
@pmaslana pmaslana merged commit e07d1eb into main Nov 4, 2024
361 checks passed
@pmaslana pmaslana deleted the EL-script-shebang branch November 4, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants