[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in pwd
From: |
Eric Blake |
Subject: |
Bug in pwd |
Date: |
Wed, 16 Feb 2005 06:47:26 -0700 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
POSIX now requires pwd(1) to support -L and -P, that -L is the default,
and that -L reads $PWD to verify that it is a name (possibly with symbolic
links) of the current directory. Coreutils pwd currently implements none
of this, and behaves as though -P is the default without ever reading $PWD.
Furthermore, POSIX requires that when -P is specified, that $PWD be
updated in the calling environment to scrub all symlinks from the
environment variable that were previously set by a `cd -L' command. I see
no possible way to implement that without relying on pwd(1) being a shell
builtin. Bash 3.0 does not do this, I'm filing an additional bug in that
direction. Is it worth coreutils even maintaining pwd(1) if it can't be
fully POSIX-compliant?
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCE07u84KuGfSFAYARAp5eAKDFTLi+RGpvCyen6QUI9BpeMmkkGQCgu8mg
NlUQTibm27BRPjetswWbFQ0=
=wWbd
-----END PGP SIGNATURE-----
- Bug in pwd,
Eric Blake <=