4 ms·
I have encountered it. When writing a shell script do you write #!/bin/bash or #!/usr/bin/bash at the top? I have had scripts fail when moving to another machin
by sudobash1 4y ago
I have encountered it. When writing a shell script do you write #!/bin/bash or #!/usr/bin/bash at the top? I have had scripts fail when moving to another machine because of having the wrong one. Same thing with /bin/env vs /usr/bin/env
It's really not a huge issue for me, but it is at least a minor frustration. (And for people who maintain scripts across different distros / *nixes, I'm sure that it is a larger frustration).
- Quekid5 4y agoAs far as I understand it /usr/bin/env is the only reliable path for "env", i.e. specified by POSIX.