-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Philip Rowlands on 4/8/2005 2:14 AM: > built-in pwd implementations can be confusing as they will in some > circumstances return a different directory to /bin/pwd, if you have cd'd > through a symlink. e.g. > > $ mkdir a && ln -s a b > $ cd b > $ pwd > /tmp/b > $ /bin/pwd > /tmp/a
Actually, POSIX requires the behavior you've documented here for the shell's builtin, as I reported here: http://lists.gnu.org/archive/html/bug-coreutils/2005-02/msg00085.html. pwd(1) is by default supposed to print logical paths (by reading $PWD), and only if that fails or -P was specified, print the physical path. - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----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 iD8DBQFCVobl84KuGfSFAYARAvHEAJ94iM/TWObFYxOklqliiyDP7KT7kACgsdke W8mmsUzyOk8hKgsMfArV010= =ppwl -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils