* Sergey Poznyakoff wrote on Thu, May 21, 2009 at 11:58:15AM CEST:
> > FWIW the awk script is not portable to ancient awk, such as found on
> > Solaris.
> 
> Hmm, but why?  I didn't use any GNU awk extensions, did I?

Not as far as I can see.  Solaris /bin/awk doesn't have the match and
sub functions, and has several other limitations over POSIX awk.

The Autoconf manual documents some of these limitations
<http://www.gnu.org/software/autoconf/manual/html_node/Limitations-of-Usual-Tools.html>,
and the gawk manual has a pretty informative section about awks too
<http://www.gnu.org/software/gawk/manual/html_node/Language-History.html>.

On Solaris, you should be able to use nawk or /usr/xpg4/bin/awk.

Cheers,
Ralf


Reply via email to