Re: cd
On Mon, Aug 02, 1999 at 09:27:41PM +0200, Marcus Brinkmann was heard to say:
> On Mon, Aug 02, 1999 at 09:12:16PM -0500, Ashutosh S. Rajekar wrote:
> > sh-2.02# cd ../lib
> > sh-2.02# pwd
> > //lib
> > ---------
> > Huh ?
>
> By the way, I see the same behaviour under Linux glibc 2.1, so it is
> not a Hurd bug at all. Feel free to report this as a bug against the glibc
> package.
>
> Thanks,
> Marcus
Is this a glibc problem? A quick test with tcsh shows that it doesn't exhibit
the bug, but bash (/bin/sh on this system) does:
palantir:~> cd /
palantir:/> pwd
/
palantir:/> cd etc
palantir:/etc> pwd
/etc
palantir:/etc> cd ../lib
palantir:/lib> pwd
/lib
palantir:/lib> cd
palantir:~> sh
sh-2.02$ cd /
sh-2.02$ pwd
/
sh-2.02$ cd etc
sh-2.02$ pwd
/etc
sh-2.02$ cd ../lib
sh-2.02$ pwd
//lib
ash also seems to be immune:
bluegreen:~> ash
$ cd /
$ pwd
/
$ cd etc
$ pwd
/etc
$ cd ../lib
$ pwd
/lib
So I suspect a problem with bash. Maybe I'm just confused though :)
Daniel
Reply to:
- References:
- cd
- From: "Ashutosh S. Rajekar" <asr@giaspna.vsnl.net.in>
- Re: cd
- From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>