Repository navigation
fix: use /usr/bin/env bash instead of direct /bin/bash in scripts - #6706
Merged
Merged
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
rfay
marked this pull request as ready for review
November 10, 2024 02:48
stasadev
approved these changes
Nov 11, 2024
| @@ -1,4 +1,4 @@ | |||
| #!/usr/bin/env expect -f | |||
| #!/usr/bin/env -S expect -f | |||
Member
There was a problem hiding this comment.
For reference:
$ env --help
-S, --split-string=S process and split S into separate arguments;
used to pass multiple arguments on shebang lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Issue
After many years of knowing the option of using
#!/usr/bin/env bashat the top of bash scripts, I finally hit a system where it mattered,See discord: https://discord.com/channels/664580571770388500/1303975088605102110
In nixOS, /bin/bash is not provided. This causes much weeping and gnashing of teeth.
But there's no reason we can't use the standard technique.
How This PR Solves The Issue
Change
#!/bin/bashand#!/bin/shTODO
This still needs an image push for all the affected images.
Manual Testing Instructions
Automated Testing Overview
Release/Deployment Notes