On 1/11/10 12:30 PM, Dams wrote:
> Bash Version: 4.0
> Patch Level: 35
> Release Status: release
>
> Description:
>
> CDPATH makes the `cd' primitive quite verbose enough to break
> some scripts, and it's also breaking the bourne compatibility.
The last time this came up, I wrote:
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.
> Fix:
> I see more than one way to fix this issue:
> 1. Disable CDPATH feature by default in bourne mode.
There is no such thing as `bourne mode'.
> 2. Disable CDPATH feature by default in non-interactive mode.
> 3. Make `cd' primitive silent (like zsh does) when resolving
> path using CDPATH.
Both of these fail the posix conformance test.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/