Matthias Andree wrote:
On Wed, 17 Aug 2005, Johnny C. Lam wrote:
(3) Solaris /bin/sh fix: don't set and export in one command;
rather, export all the variables after setting them.
(4) Solaris /bin/sh fix: "if ! cmd ; then ... fi" isn't understood,
so change it to "if cmd; then :; else ... fi".
These are no "fixes", but workarounds for a truly rotten and unusable
/bin/sh on Solaris. Sun should have replaced /bin/sh by something POSIX
compliant by now...
Working as I do on pkgsrc which supports NetBSD and Solaris (as well as
several other operating systems), I don't disagree with this sentiment.
For larger scripting jobs within pkgsrc, I tend to use a more
appropriate shell than Solaris' /bin/sh. However, if you look at the
patch, you can see that the changes are extremely minor to get pkitool
to work with the stock /bin/sh on Solaris, which is still a popular Unix
platform, and I think that the benefit is quite worthwhile of not
needing some configure script magic to detect the operating system and
select an appropriate shell.
Cheers,
-- Johnny Lam <j...@netbsd.org>