On Fri, Sep 19, 2025, at 9:20 AM, Chet Ramey wrote:
> On 9/19/25 7:26 AM, Andreas Kähäri wrote:
>> To get the help text, one should use "help builtin_name"
>> (this also works for built-ins like "[" and "echo" that do not recognize
>> "--help"). This is the point of the "help" built-in.
>
> This is true, but the --help option is part of the GNU coding standards.
For what it's worth, those standards do imply that the exit status
should be zero.
The standard `--help' option should output brief
documentation for how to invoke the program, on
standard output, then exit successfully.
https://www.gnu.org/prep/standards/standards.html#g_t_002d_002dhelp
--
vq