bug-fileutils
[Top][All Lists]
Advanced

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

Re: RM command - bug report


From: Alfred M. Szmidt
Subject: Re: RM command - bug report
Date: 05 Jun 2002 18:22:21 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

* Vincent Angeloni writes:
> I've got a file named "-------Message".
> When i want to remove this file with the rm command like this :    rm 
> -------Message    or    rm "-------Message"    or    rm '-------Message'    
> or    rm \-\-\-\-\-\-\-Message

> the command failed cause it thinks that -------Message is an option !

> Could you tell me how i can remove this file ?

>From the info page for rm:

   One common question is how to remove files whose names begin with a
`-'.  GNU `rm', like every program that uses the `getopt' function to
parse its arguments, lets you use the `--' option to indicate that all
following arguments are non-options.  To remove a file called `-f' in
the current directory, you could type either:

     rm -- -f

or:

     rm ./-f

Cheers,
--
Alfred M. Szmidt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]