3 ms·
Bashisms – a note on creating portable shell scripts
- antidoh 14y agoAgree about 75%, in the context of distributing a script. However, for private use, and sometimes even for distributing a script, taking advantage of a particular shell's isms is merely taking advantage of your tools. The article author's shebang could easily have required bash rather than sh, and it would have been 99% as portable as a vanilla sh script, as bash is almost everywhere. Distributed python scripts won't run in perl.