4 ms·
I think it is fair not to care if it isn't making a difference for you. “/usr/bin/env bash” will keep the shebang working between a Linux and FreeBSD (and prob
by doubled112 3y ago
I think it is fair not to care if it isn't making a difference for you.
“/usr/bin/env bash” will keep the shebang working between a Linux and FreeBSD (and probably other *NIX) machines. This bit me at one point, and it just became a habit since.
Bash (if installed) is in /usr/local/bin there. Other interpreters often are too.
- _piif 3y agoAlso /usr/bin/env bash is required on NixOS and Guix, neither of which have /bin/bash.
- charcircuit 3y ago/usr/bin/env does not exist on Android. shebangs are inherently not portable because they can't be used to find a binary using $PATH.
- MrStonedOne 3y ago[dead]