bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: builtin_name --help


From: Lawrence Velázquez
Subject: Re: builtin_name --help
Date: Fri, 19 Sep 2025 11:06:15 -0400

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]