Package: manpages-dev
Version: 1.70-1
Severity: minor

The current description of the return value of getopt() found in the
manpage:
"The getopt() function returns the option character if the option  was
found  successfully,  ':'  if there was a missing parameter for one of
the options, '?' for an unknown option character, or -1 for the end of
the option list."

The function returns '?' instead of ':' if there were missing
parameters if the options string does not begin with ':'.

The description of the glibc-doc describes it correctly:
"If getopt finds an option character in argv that was not included in
options, or a missing option argument, it returns `?' and sets the
external variable optopt to the actual option character. If the first
character of options is a colon (`:'), then getopt returns `:' instead
of `?' to indicate a missing option argument. In addition, if the
external variable opterr is nonzero (which is the default), getopt
prints an error message."
[/usr/share/doc/glibc-doc/html/libc_25.html#SEC528]

The error can also be found in the german translation (and maybe other
translations) of the manpage.

Thank you,
Philipp

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7.20041224
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages manpages-dev depends on:
ii  manpages                      1.70-1     Manual pages about using a GNU/Lin

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to