bug in rm???

jason pearl jpearl24 at cox.net
Sat Jan 3 10:25:11 UTC 2004


On Sat, 2004-01-03 at 03:16, Joolz wrote:
> Just a moment ago something weird happened. I was cleaning up files
> and noticed a very strange behaviour of the rm command. AFAIK Linux is
> case-sensitive, so you van have three files TeST, test and TEST in one
> directory. But I deleted more than I wanted to (no big deal, rm is the
> issue)
> 
> So I tried this:
> 
>   #!/bin/bash
>   touch TEST
>   touch TeST
>   touch test
>   ls # all three are there
>   rm te*
>   ls # ALL THREE ARE GONE???
> 
> IMO this is _very_ dangerous behaviour, one would expect Linux command
> to be compatible with the Linux filesystem (maybe rm is a port of del
> :-\)
> 
> Is this a known issue? Right know I have only Fedora at hand, but I
> wonder if other distro's have it too.
heres what i got.,.. theres gotta be something wrong with your fedora..
i am using mandrake 9.2..

[jason at sesso2 test]$ rm te*
rm: remove regular file `test'? yes
[jason at sesso2 test]$ ls
Test  TEst
[jason at sesso2 test]$ rm Te*
rm: remove regular file `Test'? y
[jason at sesso2 test]$ rm TE*
rm: remove regular file `TEst'? y
[jason at sesso2 test]$ ls
[jason at sesso2 test]$

Rcognizes case sens.. 
-- 
jason pearl <jpearl24 at cox.net>
   ++++++++++++++++++
"Keep your friends close and your enemies closer"-Tupac
   ++++++++++++++++++
Kurrupted Visionz Phx, AZ    registered linux user #307811
MDK 9.2 Linux                Machine# 193475, 227341
AMD64 Opteron 1.6		 http://counter.li.org
ASUS SK8N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040103/7b020cfd/attachment-0001.sig>


More information about the fedora-list mailing list