[TUHS] Cryptic Unix Commands

Chet Ramey chet.ramey at case.edu
Thu Sep 6 01:42:09 AEST 2018


On 9/5/18 11:04 AM, Norman Wilson wrote:

> As an aside, why do modern kill and sh accept only the
> abbreviated form of the signal name, not the full name;
> e.g. kill -STOP is OK, kill -SIGSTOP an error?  

It's the standard:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/kill.html#tag_20_64

"Historical versions of kill have not written the SIG prefix for the -l
option and have not recognized the SIG prefix on signal_names."

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_28

"Implementations may also accept the names with the SIG prefix; no known
historical shell does so."

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet at case.edu    http://tiswww.cwru.edu/~chet/



More information about the TUHS mailing list