4 ms·
no I like bash and all the systems I care about have /bin/bash so I don't care the /usr/bin/env bash thing always just seemed like pointless cargo culting to m
by VWWHFSfQ 3y ago
no I like bash and all the systems I care about have /bin/bash so I don't care
the /usr/bin/env bash thing always just seemed like pointless cargo culting to me. never had this problem
- doubled112 3y agoI 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]