Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

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

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

benley
Copy link
Contributor

@benley benley commented Jul 24, 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 locate bash 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 locate bash increases
portability.  It's not hermetic, but /bin/bash was already not
hermetic.
@benley
Copy link
Contributor Author

benley commented Jul 24, 2018

related: bazelbuild/rules_docker#381

@erain
Copy link
Contributor

erain commented Jul 24, 2018

/ok-to-test

@nlopezgi
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benley, nlopezgi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nlopezgi nlopezgi merged commit 7d4264d into bazelbuild:master Jul 25, 2018
@benley benley deleted the portable-shebang branch July 25, 2018 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants