removing a file with hyphens
Matt Wilson
codebrewery at gmail.com
Thu Jun 7 16:25:31 BST 2007
> > $ rm -rf *
> >
> > It's the only surefire way.
>
> Except it doesn't work :)
>
> % mkdir /tmp/foo
> % cd /tmp/foo
> % touch -- foo bar baz --nonexistantoption
> % rm -rf *
> rm: unrecognised option `--nonexistantoption'
> Try `rm --help' for more information.
>
> Putting an empty file called '-i' in directories you care about might
> not be a bad idea.
Coo, never thought of that ...
More information about the london.pm
mailing list