Stupid question...

Dan_Jacobson at ATT.COM Dan_Jacobson at ATT.COM
Wed May 29 11:39:00 AEST 1991


>>>>> On 28 May 91 22:46:23 GMT, jimr at hp-lsd.COS.HP.COM (Jim Rogers) said:

Jim> The reason you are having trouble with files beginning with "-"
Jim> is that this character is used by the rm command to signify an
Jim> option.  It is specifically excluded as a valid first character
Jim> for a file name, as far as the "rm" command is concerned.

Jim> The following short peice of C code

When
$ rm some_nasty_file_name
fails, I usually just do
$ rm ./some_nasty_file_name



More information about the Comp.unix.shell mailing list