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 c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature