[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inconsistent output for cd
From: |
Eric Blake |
Subject: |
Re: inconsistent output for cd |
Date: |
Tue, 03 Apr 2007 05:40:54 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Tony Balinski on 4/2/2007 9:01 AM:
> It seems like this extra output only occurs when CDPATH is used for the
> cd operation. Also, popd and pushd also have similarly inconvenient
> outputs. None of this is documented in the manual, and there appear to
> be no options at all to turn this superfluous output off.
This is by design. POSIX requires cd to output the new current directory
if CDPATH was used in determining that directory. It is not superfluous
output, merely your function needs to take that into account.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGEj1G84KuGfSFAYARAmeiAJkBsz5kNRdr7vTJPlZ852FV0RhsmwCgjLyw
a1kWd/JaJOtKMnbEWPZUBKM=
=fEFS
-----END PGP SIGNATURE-----