[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 14:38:52 -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 02:34 PM, Ralf Wildenhues wrote:
Hi Eric,

* Eric Blake wrote on Tue, Sep 07, 2010 at 10:13:49PM CEST:
POSIX guarantees that
awk supplies ENVIRON; are we assuming that this is reasonable
portable to all the old-and-crusty vendor implementations out there,
since the autoconf manual doesn't state otherwise?

No.  /bin/awk on Solaris 10 doesn't know ENVIRON, /usr/xpg4/bin/awk
and /bin/nawk do.

More precisely, does AC_PROG_AWK guarantee us an awk that will understand ENVIRON? If so, then gnulib can use that; if not, then gnulib needs to use env (in spite of its potential for false positives); either way, the answer to this question may help us decide the issue of whether GNU Coding Standards should permit env.

Meanwhile, we should document the portability of awk vs. ENVIRON in the autoconf manual.

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]