Sep 19, 2025, 06:26 by [email protected]:
> On Fri, Sep 19, 2025 at 11:40:51AM +0200, Pourko wrote:
> The bug here seems to be that the "--help" long option provokes a
> behaviour from some built-ins that is not documented.  The built-ins
> that do this are rightly exiting with status 2, since an invalid option
> was given,

Not *some*, they all return error code 2. 
And, I don't see anything "invalid" about --help.

> the fact that they *also* output help text seems like a bug to me.

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

> (this also works for built-ins like "[" and "echo" that do not recognize
> "--help").

Then maybe they should. Both /bin/[ and /bin/echo support "--help".


  • builtin_name --he... pourko--- via Bug reports for the GNU Bourne Again SHell
    • Re: builtin_... Andreas Kähäri
      • Re: buil... pourko--- via Bug reports for the GNU Bourne Again SHell
        • Re: ... Chet Ramey
          • ... pourko--- via Bug reports for the GNU Bourne Again SHell
            • ... Chet Ramey
              • ... pourko--- via Bug reports for the GNU Bourne Again SHell
                • ... Chet Ramey
                • ... pourko--- via Bug reports for the GNU Bourne Again SHell
                • ... Chet Ramey
                • ... Andreas Kähäri
        • Re: ... Andreas Kähäri
          • ... Chet Ramey

Reply via email to