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 10:33:42 -0400
User-agent: Mozilla Thunderbird

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.kahari@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    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]