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

Re: Deleting Files beginning with -

On Thu, May 08, 2003 at 02:10:32PM +0530, Sharninder Singh-662 wrote:
> try rm "file name"

That won't make any difference: the quoting is interpreted by the shell,
but it's rm that objects to the "-". Quoting, using any of '', "", or
backslashes, will make absolutely no difference to the arguments rm
sees. "-" is not a special character to the shell.

(Interestingly, /bin/rm in both stable and unstable seems to be able to
handle removing "-" just fine for me.)


Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: