On 09:34 13 Nov 2002, Robert P. J. Day <[EMAIL PROTECTED]> wrote:
| On Wed, 13 Nov 2002, Willem van der Walt<[EMAIL PROTECTED]> wrote:
| > > [...] rm -- --multi [...]
| >
| > Thanks!
| > It worked.
| > I would like to understand why it works though.
| 
| by default, most unix/linux commands will treat anything
| starting with a "-" as an option string.  however, the
| magic token "--" tells the command that all the rest
| of the command is to be treated strictly as arguments.
| 
| this trick works not just with "rm", but most commands.

It is worth mentioning that even for commands that don't honour the use of
"--" as an "end of options" marker you merely have to use another name
for your file which doesn't start with a dash. Like "./--multi". That
will work with _any_ command.

Cheers,
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

When you're all dressed up and no place to go.  - B.H. Burt (19th cent)



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to