Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that `/bin/bash` isn't guaranteed to exist, even if Bash is installed. `/usr/bin/env` is guaranteed to exist on POSIX systems, so `/usr/bin/env bash` is the generally recommended way to invoke it in a shebang. `/bin/sh` is guaranteed to exist on a POSIX system, but `/usr/bin/env sh` can be used for consistency.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: