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, Jan 12, 1:05 PM
Unknown Object (File)
Jan 2 2025, 12:32 AM
Unknown Object (File)
Dec 14 2024, 1:35 PM
Unknown Object (File)
Nov 1 2024, 2:22 PM
Unknown Object (File)
Oct 29 2024, 5:15 PM
Unknown Object (File)
Oct 4 2024, 9:20 PM
Unknown Object (File)
Oct 4 2024, 9:11 PM
Unknown Object (File)
Oct 4 2024, 7:20 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