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:17:14 -0400
User-agent: Mozilla Thunderbird

On 9/19/25 10:13 AM, Andreas Kähäri wrote:

No, the fact that they output help text is because "--help" was asked for,
and they do support "--help".

Support?  I would expect that to be documented.  If a utility does not
document an option, how can I be sure what would happen if I used it?

So maybe something like

"All builtins, with the exception of `:', `echo', and `[/test', accept
--help as a special option. If --help is supplied, the builtins output
a help message and exit with a status of 2."

Should I somehow *assume* that "--help" is supported?
You can in the case we're discussing, but only because bash is a GNU
program and `--help' is part of the GNU coding standards.

--
``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]