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

Stefan Traby
2001-01-09T08:10:47Z

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. "