[Top][All Lists]

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

Re: Noisy CDPATH breaks variable construction

From: Chet Ramey
Subject: Re: Noisy CDPATH breaks variable construction
Date: Mon, 11 Jan 2010 21:57:36 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20091204 Thunderbird/3.0

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.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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