Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oinksoft
· 12y ago · 0 comments
That should be #!/usr/bin/env bash, particularly for BSD which does not install bash in /bin. Nothing new about absolute executable paths being non-portable, #!/bin/bash is as bad as #!/usr/bin/python.
Comments
[–]
qzc4
12y ago
I'm not saying you
should
use that. It's just that "#!/bin/bash" shows 18 million results on Google while "#!/usr/bin/env bash" shows only 121,000.