On 9/19/25 10:28 AM, pourko--- via Bug reports for the GNU Bourne Again SHell wrote:
Sep 19, 2025, 09:14 by andreas.kah...@abc.se:
Should I somehow *assume* that "--help" is supported?

Actually, yes. If there is only one thing that you would reasonably
assume about any command -- then this would be it. :-)

When you encounter an unfamiliar command, you don't immediately rush
to find its documentation -- No, you first try "--help" -- and that is
a reasonable assumption.

Not all the world is Linux.

$ /bin/cp --help
/bin/cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
$ echo $?
64

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

          • ... 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: builtin_... Andreas Kähäri
  • Re: builtin_name ... Chet Ramey
    • Re: builtin_... Lawrence Velázquez
      • Re: buil... Chet Ramey
        • Re: ... 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
            • ... pourko--- via Bug reports for the GNU Bourne Again SHell

Reply via email to