Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
oinksoft
on Oct 2, 2014
|
parent
|
context
|
favorite
| on:
Hacker's Guide to Setting Up Your Mac
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.
qzc4
on Oct 2, 2014
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: