Thomas Ribbrock wrote:

>
> <quote>
>      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
>      The Unix rm program's use of a single `-' for  this  purpose
>      predates the development of the getopt standard syntax.
> </quote>
>
> So, if I'm right in assuming that Linux uses the GNU rm, the correct
> answer to your initial question would have been: RTFM... ;-)
>

I RTFmvM but did not RTFrmM since I was trying to rename the files :)
You are right though, Linux does use GNU rm and the man page for rm does indeed
speak of the -- option.  The mv man page does not :(

Bret


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to