I have this file named "-\" and I cannot get rid of it.

rm -\
rm -\\
rm \-\
rm \-\\
rm "-\"
rm "-\\"
rm "\-\\"
all do not work.  Every one thinks that the \ is an option and it doesn't
know how to handle it.  I don't know where this came from.  Also, 
there is an interesting (perhapse bug) thing that occurs.

[root /root]# rm "\-\\"
rm: \-\: No such file or directory
[root /root]# rm "-\\"
rm: invalid option -- \
Try `rm --help' for more information.

If you notice, in the first one, the '-' is escaped with a \, and it
thinks the file name is '\-\', so if you remove the leading backslash,
then it thinks that the '-' is a flag.  Any suggestions?

-CJO-


                C.J. Oster (Linux Guru/Surge Addict)
--------------------------------------------------------------------
| [EMAIL PROTECTED]   |    910 S. 3rd St, #1318  |    CCSO, WSG, UIUC  |
| [EMAIL PROTECTED]  |    Champaing, IL 91820   |    1443 DCL, Urbana |
--------------------------------------------------------------------
                   (580)761-6393 (217)328-8934
      "Linux, for people with an IQ above 98" - Bumper Sticker
 "Hm, a little big for a cup holder... Why does it say '4x' on it?"

Reply via email to