Felix Dietrich <[email protected]> wrote:
> ---
> When I read the getopts description in the man-page I got stumped by the
> following part:
> 
>    getopts optstring var
> 
>        [..]
> 
>        If there are no remaining arguments, getopts will set var to
>        special option, “--”, otherwise, it will set var to “?”
> 
>        [..]
> 
> After I was unable to get getopts to store "--" in var, I asked for help
> on comp.unix.shell [1] where it was pointed out to me that actually the
> POSIX description of getopts [2] does not include a special option "--";
> dash's behaviour of setting var to "?" after the last argument is
> correct and that this is most likely an error in the documention.

Patch applied.  Thanks!
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to