Proposed argument changes to ntpq (fixing bug #319)
Eric S. Raymond
esr at thyrsus.com
Thu Jun 8 19:48:56 UTC 2017
Gary E. Miller via devel <devel at ntpsec.org>:
> Well, more to be learned, my getopt(3p) is not the same as what I see on
> unix.com. The online copy did not include the snippet I quoted. You
> can confirm on the POSIX site for getopt(3P):
>
> http://www.unix.com/man-page/posix/3p/getopt/
>
> But they both had this snippet:
>
> "A <colon> (':') shall be returned if getopt() detects a missing
> argument and the first character of optstring was a <colon> (':')."
>
> So optional optarg can be valid POXIX.
I didn't know that. Thanks.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170608/c7600d50/attachment.bin>
More information about the devel
mailing list