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

Do not depend on the exact location of the 'sh' interpreter #1089

Closed
wants to merge 1 commit into from

Conversation

utdemir
Copy link

@utdemir utdemir commented Jan 8, 2022

Some Unix systems do not have sh at the specified location: /bin/sh. In my instance, I'm using NixOS, which also lacks it.

Using /usr/bin/env sh instead uses the sh executable from users $PATH, which should be more portable and also it makes it possible for the user to choose which 'sh' to use.

See: https://en.wikipedia.org/wiki/Shebang_(Unix)#Portability

Some Unix systems do not have sh at the specified location: `/bin/sh`.

Using `/usr/bin/env sh` instead uses the `sh` executable from users `$PATH`,
which should be more portable.

See: https://en.wikipedia.org/wiki/Shebang_(Unix)#Portability
@typicode
Copy link
Owner

Thanks for the PR 👍
Closing as #1051 was merged

@utdemir utdemir closed this Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants