Page MenuHomeFreeBSD

getopt_long(3): note an inconsistency with getopt(3) in BUGS
ClosedPublic

Authored by kevans on Dec 24 2022, 6:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 10:47 PM
Unknown Object (File)
Tue, Nov 11, 12:36 AM
Unknown Object (File)
Oct 28 2025, 11:54 AM
Unknown Object (File)
Oct 12 2025, 3:46 AM
Unknown Object (File)
Oct 12 2025, 3:46 AM
Unknown Object (File)
Oct 12 2025, 3:46 AM
Unknown Object (File)
Oct 11 2025, 5:49 PM
Unknown Object (File)
Oct 4 2025, 9:34 AM

Details

Summary

getopt_long(3) will not allow an optind setting of 0 to be bug-for-bug
compatible with the GNU implementation, as some software does rely on
it. Document it as a BUG, since it affects previous declarations of
compatibility with getopt(3).

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable