On Wed, Oct 20, 2004 at 02:42:21PM -0400, Matt Price wrote: > CW Harris wrote: > >On Wed, Oct 20, 2004 at 01:33:30PM -0400, Adam Garside wrote: > > > >>On Wed, Oct 20, 2004 at 12:51:32PM -0400, Matt Price wrote: > >>[Snip] > >> > >>>rm \-* > >>>or > >>>rm '-0.pnf' > >>> > >>>is there a way to reference files whose names begin with -? > >> > >>try 'rm -- -0.pnf' > > > > > >Or "rm ./-0.pnf" works too. > > > > > doh! and it's even in the manual! > > thank you for the info. anyone know what the '--' option sigifies? I > notice it's not really documented in the man page. > m
"info rm" or "man getopt". GNU tools using the getopt function make use of "--" to delimit options from parameters. (Note that in this case info does not give the same page as man---at least on my system). -- Chris Harris <[EMAIL PROTECTED]> ------------------------------------------- GNU/Linux --- The best things in life are free. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]