bug-bash
[Top][All Lists]
Advanced

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

Re: CDPATH bug


From: Chet Ramey
Subject: Re: CDPATH bug
Date: Mon, 01 Oct 2007 22:04:01 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

Pierre Gaston wrote:

> I think I did, if bash is invoked as sh, it behaves differently, one
> of these differences is that
> cd will not try to search in you current directory.
> as soon as CDPATH is set, "cd Desktop" will only work if Desktop is in a 
> subdir
> of the directories defined in CDPATH and will fail even if Desktop is
> in your current dir.
> 
> This behaviour is documented in the reference guide read again my first mail.
> 
> It seems that  this  documented behaviour is a "bug" because POSIX
> doesn't define it this way. I tend to agree with Erik on this point.

I have not made up my mind about it.  The bash behavior when invoked
as `sh' (or in posix mode) is the historical sh behavior, and is what
other shells claiming posix compliance (ksh93, dash) or as close as
you can get to a straight-line descendant of the bourne shell (SVR2
sh, SVR3 sh, SVR4.2 sh) do.

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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