Skip to content

Use /usr/bin/env bash for more portable shebang lines#381

Merged
erain merged 4 commits intobazelbuild:masterfrom
benley:benley/portable-shebang
May 9, 2018
Merged

Use /usr/bin/env bash for more portable shebang lines#381
erain merged 4 commits intobazelbuild:masterfrom
benley:benley/portable-shebang

Conversation

@benley
Copy link
Contributor

@benley benley commented Apr 9, 2018

There are still systems widely in use where bash does not exist at /bin/bash (e.g. NixOS), or where /bin/bash is an extremely outdated version of bash (MacOS). Using /usr/bin/env to find it increases
portability. It's not hermetic, but /bin/bash was already not hermetic.

There are still systems widely in use where bash does not exist at
/bin/bash (e.g. NixOS), or where /bin/bash is an extremely outdated
version of bash (MacOS).  Using /usr/bin/env to find it increases
portability.  It's not hermetic, but /bin/bash was already not
hermetic.
Copy link
Contributor

@erain erain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@erain erain merged commit e5ebe3d into bazelbuild:master May 9, 2018
@benley benley deleted the benley/portable-shebang branch May 10, 2018 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants