[Zlib-devel] zlib-1.2.5 configure script issues

John Bowler jbowler at frontiernet.net
Fri Apr 23 16:52:25 EDT 2010


From: Mark Adler
>> 1) Solaris /bin/sh doesn't grok $(...)
>I have changed that to ${...}, which is what I am assuming the Solaris sh is expecting.

$(sed foo) is a bashism for `sed foo` - the only difference between $(command) in bash and `command` in both bash and /bin/sh is that the backquote version can't be nested.

Consequently it's always better to avoid $() in portable shell scripts (though using it in machine specific ones is a good idea because it is several orders of magnitude easier to read.)

John Bowler <jbowler at acm.org>






More information about the Zlib-devel mailing list