bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `kill --help` prints output of `help kill`


From: Chet Ramey
Subject: Re: `kill --help` prints output of `help kill`
Date: Mon, 11 Aug 2025 09:19:33 -0400
User-agent: Mozilla Thunderbird

On 8/10/25 5:17 PM, Wiley Young wrote:
It seems like using that syntax would indicate an intention to use the
binary.

This is faulty reasoning. All the bash builtins, except for `:', `echo',
`true', `false', and `test' (for obvious reasons), accept `--help'. It's
part of the GNU coding standards.

This is consistent across systems, even those not using coreutils.

$ type -P kill
/bin/kill
$ /bin/kill --version
usage: kill [-s signal_name] pid ...
       kill -l [exit_status]
       kill -signal_name pid ...
       kill -signal_number pid ...


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