3 ms·
Most people who use Unix directly build up some stuff in ~/bin (often a misnomer because it's shell scripts and not binaries, although mine is less of a misnome
by juped 7y ago
Most people who use Unix directly build up some stuff in ~/bin (often a misnomer because it's shell scripts and not binaries, although mine is less of a misnomer than most because so much is in C rather than shell). The trick is to build them out of the standard portable components that exist everywhere. (This means, among other things, no #!/bin/bash.)
- tuldia 7y agosed 's| no | not only |'
- juped 7y agoI disagree.
- tuldia 7y agoYou are also right. Now that I saw tingletech comment I got your point :)
- tingletech 7y ago/bin/bash won't usually ship with a BSDish OS because of the license, so it is not generally portable to use bash-isms. (HPUX, IRIX, SunOS, Solaris, etc. I don't reckon would have had bash either)
- chriswitts 7y agoYou shouldn't be using `#!/bin/bash` but rather `#!/usr/bin/env bash` instead.
- Lerc 7y agoI know this but usually don't do it. Been burnt by it too. Reprogramming your brain is hard. [edit] Would there be any negative consequences to having an automated process go through and change it? Maybe the size difference might cause some issues with some things doing black magic with data in the file.