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.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.cwru.edu/~chet/