On 6-Jun-10, at 9:58 AM, Davide Brini wrote:
On Sunday 06 June 2010, Toby Thain wrote:
Most of the common GNU utilities (including gcc) are in the
standard
Solaris install, either via /usr/sfw/ or by using g prefix (e.g.
gawk,
gmake).
Possibly, but it still means that either scripts using standard
names and expecting standard functionality have to be changed, or
the
system has to be changed to have the standard-named utilites point
to the
GNU versions.
Yes and no... Autotools will generally find the g-binaries (obviously
autotools has long supported Solaris). OpenSolaris does, I believe,
bring more GNU to standard userland (but this is not
uncontroversial).
Well yes, but to paraphrase what you say later, "all the world's not
GNU", so
probably not everyone uses autotools :-)
In my (admittedly limited) experience, solaris has always shipped
non-standard
or inferior default tools, even long before GNU came about.
Yes - Buggy/poorly supported vendor tools (Sun was certainly not the
only or worst offender) was a major issue GNU was meant to fix. (In
the particular case of SunOS, missing vendor compiler.)
It is a bit tricky deriving a portable bang-path in your case. But
innovations like dash on Debian also serve to prove that 'all the
world's not a GNU/Linux'.
Agreed! (although dash isn't perfect yet, but nevermind). That's why
I think
#!/bin/sh should be used.
--Toby
--
D.