bug-bash
[Top][All Lists]
Advanced

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

Re: CDPATH reports to stdout and even non-interactively


From: Eric Blake
Subject: Re: CDPATH reports to stdout and even non-interactively
Date: Fri, 15 Aug 2008 17:51:39 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Chet Ramey on 8/15/2008 3:14 PM:
> 
> This is the behavior that Posix requires:  when CDPATH is used, bash
> outputs the name of the new working directory to stdout.  Commands
> and shell functions need to take this into account.

And in general, it is a bad idea to export CDPATH.  Using it in
interactive shells as a non-environment shell variable is fine, but
exporting it affects non-interactive shells.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkimFosACgkQ84KuGfSFAYBGggCfWc0IKnIYSuul73ZaNsa6S5Rl
hSwAn01Si7Fi+Z4UEOGbUedG411Jk8wL
=jg2N
-----END PGP SIGNATURE-----




reply via email to

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