|
| From: | Chet Ramey |
| Subject: | Re: CDPATH reports to stdout and even non-interactively |
| Date: | Fri, 15 Aug 2008 17:14:32 -0400 |
| User-agent: | Thunderbird 2.0.0.16 (Macintosh/20080707) |
geoff@cs.hmc.edu wrote:
Bash Version: 3.2
Patch Level: 25
Release Status: release
Description:
If CDPATH is set, whenever bash changes directories to a
non-absolute path it reports the new directory to stdout.
This is done even if bash is running in non-interactive mode,
such as in a script. That breaks scripts that do things like
this:
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. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |