> >Ahh, much better syntax - I thought about suggesting this before,
> >but I wasn't sure if it was common to all POSIX shells. But it is,
> >I just checked.
> Peter, how did you check it for POSIX compatibility?
I have several POSIX shells installed on my local system so that I can
check things like this. Specifically I ran it in 'posh', a minimal
POSIX shell, and 'dash', a variant of the NetBSD system shell which is
also fairly minimalist. Sometimes I test more complicated constructs
on a wider variety of shells: dash, posh, bash, zsh, sash, pdksh (which
is similar to ksh88), ksh93, and the busybox shell. All of these are
provided by Debian so they're easy to install. Actually I rarely
bother to test busybox.
Concerning `` and $(): that was just a matter of personal preference,
there is nothing wrong with using ``, I just wanted to mention that I
think $() is easier to read and use.
Received on Fri Feb 9 10:53:13 2007