On Fri, Aug 01, 2003 at 02:55:32PM +1000, Andrew Monkhouse wrote:

> The readline() call stops interpreting command line options after it 
> sees a "--" on it's own. So you can do:
> 
>    mv -- ---.dat foo.dat
> 
> Then the "---.dat" will be interpreted as a filename, not as an option.
> 
> (Now if only I could remember where that was documented, I could point 
> you to the documentation).

getopt(3)

    The special argument `--' forces an end of  option-scanning
    regardless of the scanning mode.


Cheers,

John
-- 
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to