Skip to content
Snippets Groups Projects
Commit d7582e69 authored by Felix Dietrich's avatar Felix Dietrich Committed by Herbert Xu
Browse files

man: Fix description of getopts when last argument reached


The description of getops in the manual incorrectly states that
var will be set to "--" when no arguments remain.  In fact it
will be set to "?".

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent fe393c0f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1402,14 +1402,9 @@ By specifying a colon as the first character of
.Va optstring
all errors will be ignored.
.Pp
A nonzero value is returned when the last option is reached.
If there are no remaining arguments,
After the last option
.Ic getopts
will set
.Va var
to the special option,
.Dq -- ,
otherwise, it will set
will return a non-zero value and set
.Va var
to
.Dq \&? .
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment