bug-bash
[Top][All Lists]
Advanced

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

Re: CDPATH bug


From: Pierre Gaston
Subject: Re: CDPATH bug
Date: Mon, 1 Oct 2007 16:22:07 +0300

On 10/1/07, Valkanas Nikos <Nikos.Valkanas@xt.hol.net> wrote:
>
> Dear Pierre,
>
> I am afraid you didn't understand my problem.

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.

Now the sh,  I have around me now behave like bash (ash, solaris'
/bin/sh and /usr/xgp4/bin/sh)

Pierre




reply via email to

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