jgabaut / amboso

Build tool wrapping make. Written in bash.
GNU General Public License v3.0
4 stars 0 forks source link

[BUG] The script may still be ran under old bash on macOS #102

Closed jgabaut closed 2 months ago

jgabaut commented 7 months ago

At the moment the script's shebangs points to /bin/bash. While this is fine and dandy on most systems, on macOS (which still ships bash 3.2) this may lead to unknown errors.

This is mostly because the newer bash you can get from homebrew will reside somewhere like /opt/homebrew/bin/bash.

I don't think running chsh and updating the shells info does anything to change which program will correspond to /bin/bash...

Needs further investigation.

To show the unexpected behaviour on macOS:

jgabaut commented 5 months ago

Version 2.0.5 changes the shebangs to point to /usr/bin/env bash, allowing an updated bash to be picked up when on macOS. This should have been done ages ago, about #58 .

jgabaut commented 2 months ago

This should have been closed earlier, since its main goal has been achieved.