[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POSIXLY_CORRECT not correctly unset in getopt.m4?

From: Eric Blake
Subject: Re: POSIXLY_CORRECT not correctly unset in getopt.m4?
Date: Tue, 07 Sep 2010 15:19:20 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 09/07/2010 03:05 PM, Ralf Wildenhues wrote:
[ let's drop at least bug-standards ]

* Eric Blake wrote on Tue, Sep 07, 2010 at 10:38:52PM CEST:
More precisely, does AC_PROG_AWK guarantee us an awk that will
understand ENVIRON?

I think so, yes.

After further testing, I'm starting to think so as well. AC_PROG_AWK is indeed documented as favoring [gmn]awk over the traditional version. I found that IRIX 5.3 has a deficient traditional awk, but does have a working /usr/bin/nawk:

$ uname -a
IRIX xxx 5.3 11091812 IP22 mips unknown Irix
$ foo=bar /bin/awk 'BEGIN { print ENVIRON["foo"] }' </dev/null

$ foo=bar nawk 'BEGIN { print ENVIRON["foo"] }' </dev/null

I also tested Solaris, AIX 4.3.3, FreeBSD, and Darwin, so I've covered a decent smattering of systems where [mn]awk is not likely to be GNU awk.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]