VERY SERIOUS rmdir bug
Ken Latham
latham at bsdpkh.UUCP
Sat Aug 16 09:52:11 AEST 1986
In article <-932157 at homer> marc at homer.UUCP writes:
>
>>>To demonstrate the bug, do this:
>>>
>>>$ mkdir foo foo/bar
>>>$ rmdir foo/bar/../bar
>>>(rmdir will cough along the lines of "foo/bar/../bar not removed")
THE ABOVE IS A REAL BUG ....
>>This seems to be another variant on the:
>>
>> $ mkdir foo
>> $ cd foo
>> $ rmdir `pwd`
>>
>>/* End of text from homer:net.unix-wizar */
>
>try this one:
> $ mkdir foo
> $ cd foo
> $ (cd ..; rmdir foo)
>then try
> $ pwd
> $ l
> $ cd ..
>
>this is great fun!
..... NO it's SHELL !!!!
these two are "BUGS" in shell not 'RMDIR' ( not technically though )
When you remove the cwd from inside shell, you strand yourself there.
Ksh does not have these problems.
Ken Latham, AT&T-IS (via AGS Inc.), Orlando , FL
uucp: ihnp4!bsdpkh!latham
More information about the Comp.unix.wizards
mailing list