[Top][All Lists]

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

Re: "cd .." when WD unlinked gives wrong behaviour

From: Chet Ramey
Subject: Re: "cd .." when WD unlinked gives wrong behaviour
Date: Tue, 22 Feb 2005 16:30:11 -0500

>       https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=149079
>       When the working directory has been unlinked, "cd .." should
>       give an error exit status, but instead exits with code 0.
>       Additionally, "pwd" (the built-in) appends "/.." to the
>       previous working directory, rather than giving an error as it
>       previously did.

Odd.  It only works this way on Linux.  MacOS X, FreeBSD and BSD/OS behave
as you expect.

Solaris doesn't allow the rm to work at all.

I will look into it further.


``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.cwru.edu/~chet/

reply via email to

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