Thursday, March 27, 2014

Please Open Source people: Use /usr/bin/env!


A new pet peeve of mine is people assuming that bash is either in /bin or /usr/bin in their shell scripts. Please folks, change your shebang to
#!/usr/bin/env bash
And stop hardcoding where you think my bash is.
Not just bash either:
http://stackoverflow.com/questions/11889892/shell-script-shebang-for-unknown-path