|
| From: | Chet Ramey |
| Subject: | Re: builtin_name --help |
| Date: | Fri, 19 Sep 2025 10:33:42 -0400 |
| User-agent: | Mozilla Thunderbird |
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_filecp [-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/
OpenPGP_signature.asc
Description: OpenPGP digital signature
| [Prev in Thread] | Current Thread | [Next in Thread] |