Re: `rmdir .` doesn't work in 2.4

Stefan Traby (stefan@hello-penguin.com)
Tue, 9 Jan 2001 09:09:36 +0100


On Mon, Jan 08, 2001 at 03:28:29PM -0800, Linus Torvalds wrote:

> But at least "rmdir `pwd`" is not _required_ to fail, like rmdir("."/"..").

"rmdir `pwd`" is required to fail (at least under csh, bash, ksh) if the
path component contains a white space and thereof it can't be a valid
replacement for Andreas "rmdir ." which was what Al initially suggested.

Yes, I'm very pickey about that; but hey, I don't want to force anyone
to write GNU/Linux like rms; just valid shell code. :)

I hope you now agree that "rmdir `pwd`" makes not much sense - except in
bug reports for bash, csh and ksh scripts or in scripts dedicated to
the Win32 environment :)

-- 

ciao - Stefan

" Lession 1: Quoting. Lession 2: Power up the machine. " - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/