]> git.ipfire.org Git - thirdparty/util-linux.git/commit
getopt: document special symbols that should not be used as option characters
authorcgoesche <cgoesc2@wgu.edu>
Fri, 22 Aug 2025 21:31:24 +0000 (17:31 -0400)
committercgoesche <cgoesc2@wgu.edu>
Fri, 22 Aug 2025 21:31:24 +0000 (17:31 -0400)
commit9b4f1ca3342bdff7e1c3d8eaf3735cf821f407bc
treeb66234df4163a50cdb983c1defced3d9c202e43c
parentc5d76cba5832ddb865819fb5aa6b1280e64133ee
getopt: document special symbols that should not be used as option characters

getopt(3) routines return `?` or `:` when an unknown option character is encountered
or an option is missing its required argument, respectively. It also disallows
`;` as an option character. Documenting this makes users aware that they may not use
these reserved symbols as option characters, e.g. `-?` which is used in some older programs.

Addresses: #2995
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
misc-utils/getopt.1.adoc
misc-utils/getopt.c