Marc,
Quoth Marc Collin:
>So bash is not portable because of bashisms, bloated and slow?
>Any of those 3 things could be a set-off, but all 3 at once makes me
>agree that bash sucks.
>#!/bin/sh should be good.
You may also want to read Tom Duff’s comments on the Bourne
shell in his paper on rc(1)—see “Design Principles”.[0]
sh’s bizarre quoting rules are its deepest flaw. Everything
that gets expanded by the shell also gets coerced to a string
and split with IFS—hence the double-quotes-around everything
appearance of sh scripts.
bash seems to be an attempt to hack most of Perl on top of
these ugly foundations.
--
wcm
[0] http://plan9.bell-labs.com/sys/doc/rc.html
Received on Sat Apr 23 2016 - 19:06:13 CEST