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: Tue, 2 Oct 2007 11:36:50 +0300

On 10/2/07, Valkanas Nikos <Nikos.Valkanas@xt.hol.net> wrote:
> Sorry for butting in. Considering that "Desktop" is a valid subdir is it
> normal behavior in *any* shell to get:
>
> DrWho:~-> cd Desktop
> sh: cd: Desktop: No such file or directory
>
> Which shell behaves like that?

Chet Ramey listed some in his mail, I've tried:

ash,  ksh93 and pdksh when invoked with the name "sh", /bin/sh and
/usr/xpg4/bin/sh under sunOS 5.8

They all behave like bash when started with the name "sh"

> Even if one would argue that CDPATH should not be set in sh

CDPATH is documented in sh, so there is no reason not to use it,  but
so far the only "sh"  I found that cd to a subdir in the current path
when CDPATH is set  is  zsh when started with the name "sh".




reply via email to

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