Carl Lowenstein wrote:
> Since when has one been able to put a "-" option after the file name
> in a command line?
> 
> [EMAIL PROTECTED] tmp]$ mkdir a
> [EMAIL PROTECTED] tmp]$ touch a/b
> [EMAIL PROTECTED] tmp]$ rm a
> rm: cannot remove `a': Is a directory
> [EMAIL PROTECTED] tmp]$ rm a -rf
> [EMAIL PROTECTED] tmp]$ ls a
> ls: a: No such file or directory
> [EMAIL PROTECTED] tmp]$ rm --version
> rm (coreutils) 5.2.1
> 
> Observed in somebody else's shell script.  Rubs me very much the wrong way.

It does read funny, but I've always thought it was the _standard_
getopt(1,3,P) behavior - at least, since the invention of '--'.

For programs that don't use getopt, I suppose you can never know what it
will accept.

..jim


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to