[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ProgSoc] Funny files..



Check this out..

myke@nospam.geryon [~/crap] 69 $ls 
-123 

myke@nospam.geryon [~/crap] 70 $rm -123 
rm: invalid option -- 1 
Try `rm --help' for more information. 

myke@nospam.geryon [~/crap] 71 $rm "-123"
rm: invalid option -- 1 
Try `rm --help' for more information. 

myke@nospam.geryon [~/crap] 71 $rm '-123'
rm: invalid option -- 1
Try `rm --help' for more information.

myke@nospam.geryon [~/crap] 72 $rm \-123 
rm: invalid option -- 1 
Try `rm --help' for more information. 


If you're wondering how you can create such a file in the first place,
well just edit a file with pico, and save it with the name -123. Now, my
problem is, how do I remove it? 

I know I can just 'cd ..' a level and 'rm -r crap', but this isn't what I
want to do (what if a file like this is in one's home directory?)

Any takers?



          ,$    _  __   ____
   /\/\   d$b  | |/ /  | __/   [  mike@nospam.speednet.com.au  ]
  /    \   $P  |   (   | _/    [ MaMA SaiD kNOcK Yu OuT ]
 /_/_/\_\   ,  |_|\_\  |___\   [r&b|MoSSiMo|fUDgE|VF3|AD]   
           d$P
              i n t o  t h e  w o n d e r f u l          




--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>