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

Update bash reference #27

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

Conversation

markaltmann
Copy link

According to: https://stackoverflow.com/questions/16365130/what-is-the-difference-between-usr-bin-env-bash-and-usr-bin-bash

The idea is to use a user provided bash path and not only look a a predefined path (although it might be posix compliant etc...)

One reason of doing so is that the bundled bash on macOS is really old, but even if you use a more modern bash, it will not be picked up by this script. Other then calling it with the proper bash

Example macOS 14.7.1:

$ /bin/bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
Copyright (C) 2007 Free Software Foundation, Inc.

$ which bash
/opt/homebrew/bin/bash
$ bash --version
GNU bash, Version 5.2.37(1)-release (aarch64-apple-darwin23.4.0)
Copyright (C) 2022 Free Software Foundation, Inc.
Lizenz GPLv3+: GNU GPL Version 3 oder jünger <http://gnu.org/licenses/gpl.html>

According to: https://stackoverflow.com/questions/16365130/what-is-the-difference-between-usr-bin-env-bash-and-usr-bin-bash

The idea is to use a user provided bash path and not only look a a predefined path (although it might be posix compliant etc...)

One reason of doing so is that the bundled bash on macOS is really old, but even if you use a more modern bash, it will not be picked up by this script. Other then calling it with the proper bash
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.

1 participant