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

Run a program in a modified environment #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vrkansagara
Copy link

This makes your bash script portable. The advantage of #!/usr/bin/env bash is that it will use whatever bash executable appears first in the running user's $PATH variable.

Description

Describe the change you are suggesting.

Submission Checklist

  • The code author has performed a self-review of the code.
  • The code author has performed a complete test of the code.
  • The documentation is up to date.

This makes your bash script portable. The advantage of `#!/usr/bin/env` bash is that it will use whatever bash executable appears first in the running user's `$PATH` variable.
Copy link
Contributor

@paretl paretl left a comment

Choose a reason for hiding this comment

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

I agree with this improvement 👍 Let's merge it

@vrkansagara
Copy link
Author

@paretl If this is approved by other people then we need to update other reset of script as well so let's not consider other script in one sort but this would impact to other script as well. For your information.

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.

2 participants