Skip to content

Use '/usr/bin/env bash' instead of '/bin/bash' for Linux scripts. - #894

Open
swagtop wants to merge 1 commit into
EpicGames:masterfrom
swagtop:master
Open

Use '/usr/bin/env bash' instead of '/bin/bash' for Linux scripts.#894
swagtop wants to merge 1 commit into
EpicGames:masterfrom
swagtop:master

Conversation

@swagtop

@swagtop swagtop commented Aug 19, 2026

Copy link
Copy Markdown

(Accidentally nuked old PR while rebasing for latest changes)

If /usr/bin/env bash is used in the shebangs of the Linux scripts, the bash that runs the script will be found in $PATH. This results in the scripts working on any systems that have bash available to the user, regardless of where it is located.

In many systems /bin/bash does not exist, as it is installed elsewhere. Using /usr/bin/env bash is a common way to avoid any portability issues between different Linux distributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant