3 ms·
2017 POSIX, Section 2.1.1, paragraph 4: "The system may provide non-standard extensions. These are features not required by POSIX.1-2017 and may include, but a
by kazinator 8y ago
2017 POSIX, Section 2.1.1, paragraph 4:
"The system may provide non-standard extensions. These are features not required by POSIX.1-2017 and may include, but are not limited to:
Additional functions
[ ... ]
Additional options for standard utilities"
[ ... ]"
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap02.html#tag_02_01_01 http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_...
A standard utility that takes no options can be extended locally to take options. "Some options" constitutes "additional options" relative to "no options".
Since the descriptions of true and false say they take no options; therefore POSIX-conforming scripts don't pass any. A POSIX-conforming script has no way of finding out whether true or false take implementation-defined options (i.e. any options whatsoever).