3 ms·
Most of the time /bin/sh would suffice as no bash features are used but people still use /bin/bash.
by necrodawg 12y ago
Most of the time /bin/sh would suffice as no bash features are used but people still use /bin/bash.
- easytiger 12y agoAlso don't use absolute paths in your shebang
- nbaksalyar 12y agoSo e.g. in this case it'd be better to use just "#!env bash"?
- teddyh 12y agoThat doesn’t even work. The interpreter needs to use an absolute path, hence the trick with “env”.
- masklinn 12y agoThe executable is passed to execve, so it has to be an absolute path (part of the reason for the indirection via env)