[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug] kill -l 0 outputs T, not EXIT
From: |
Chet Ramey |
Subject: |
Re: [Bug] kill -l 0 outputs T, not EXIT |
Date: |
Sat, 17 Sep 2016 12:43:26 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 9/12/16 11:11 PM, Martijn Dekker wrote:
> The command
>
> kill -l 0
>
> outputs T. I would expect EXIT as T is not a valid signal or
> pseudosignal name. Since T is the last letter of EXIT, I suspect a typo
> somewhere.
>
> AT&T ksh93 outputs EXIT. pdksh/mksh and zsh output 0 (presumably EXIT is
> not a real signal). dash and yash give a "no such signal number" error.
> All of these seem sensible, but "T" does not.
If you read the Posix description of `kill -l', the dash and yash behavior
seems the most conformant.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/