bug-coreutils
[Top][All Lists]
Advanced

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

Re: bug, i think? pwd --help and pwd --version don't work


From: Eric Blake
Subject: Re: bug, i think? pwd --help and pwd --version don't work
Date: Fri, 08 Apr 2005 07:28:06 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----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             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

iD8DBQFCVobl84KuGfSFAYARAvHEAJ94iM/TWObFYxOklqliiyDP7KT7kACgsdke
W8mmsUzyOk8hKgsMfArV010=
=ppwl
-----END PGP SIGNATURE-----




reply via email to

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