bug-bash
[Top][All Lists]
Advanced

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

Re: builtin_name --help


From: Chet Ramey
Subject: Re: builtin_name --help
Date: Fri, 19 Sep 2025 11:09:49 -0400
User-agent: Mozilla Thunderbird

On 9/19/25 11:06 AM, Lawrence Velázquez wrote:
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.

Yes, that is one of the reports here. The other is that --help isn't
documented as being a valid option for the builtins that accept it.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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