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)
Sun, Dec 21, 1:32 AM
Unknown Object (File)
Nov 26 2025, 10:47 PM
Unknown Object (File)
Nov 11 2025, 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

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