bug-coreutils
[Top][All Lists]
Advanced

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

Re: Documentation of POSIXLY_CORRECT


From: Eric Blake
Subject: Re: Documentation of POSIXLY_CORRECT
Date: Wed, 11 Nov 2009 06:05:05 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Schwarz, Konrad on 11/11/2009 4:45 AM:
> The current text says "[...] define the `POSIXLY_CORRECT' environment 
> variable."  I took this to mean that the variable needs to be exported 
> (export POSIXLY_CORRECT),

Correct.

> but it needs to be set to a value as well, at least for du(1).

That would be a bug, if it were true.  But I can't see anything in the
source for du that inspects the value of POSIXLY_CORRECT.  lib/getopt.c
uses !!getenv ("POSIXLY_CORRECT") to decide whether to do POSIX option
parsing, and src/du.c has no reference to POSIXLY_CORRECT.  In fact, I
couldn't find anywhere in coreutils sources that dereferences the value
returned by getenv("POSIXLY_CORRECT").

What version of du are you using?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkr6toEACgkQ84KuGfSFAYCX4QCgzXZPMX8aQlAs8RksD0Me44pA
iZsAoM4Wijidy6CLgMGMTrtsrUicm5MF
=YwDS
-----END PGP SIGNATURE-----




reply via email to

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