[Nix-dev] NixOS has a non-conforming value for _CS_PATH. Do we care?

Shea Levy shea at shealevy.com
Fri Aug 26 19:38:45 CEST 2011


Hi all,

POSIX.2004's specification of confstr 
<http://pubs.opengroup.org/onlinepubs/009695399/functions/confstr.html> 
states:

    If the implementation supports the POSIX shell option, the string
    stored in /buf/ after a call to:

    confstr(_CS_PATH, buf, sizeof(buf))

    can be used as a value of the /PATH/ environment variable that
    accesses all of the standard utilities of IEEE Std 1003.1-2001, if
    the return value is less than or equal to /sizeof/( /buf/).

glibc hard-codes confstr(_CS_PATH, ...) to be /bin:/usr/bin, which 
obviously on NixOS cannot "be used as a value of the /PATH/ environment 
variable that accesses all of the standard utilities of 
IEEE Std 1003.1-2001", rendering NixOS non-conforming with POSIX as far 
as I can tell. Does anyone care about this? Does anyone have any way to 
fix this without hard-coding paths to, e.g., coreutils in glibc?

~Shea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20110826/78a9cca0/attachment.html 


More information about the nix-dev mailing list