Re: [PATCH] t0005: work around strange $? in ksh when program terminated by a signal
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 9, 2010, 14:39 UTC
- Message-ID
- <20100709143958.GB1980@burratino>
- In-Reply-To
- <4C36CA2C.5050305@viscovery.net>
Johannes Sixt wrote:
> ksh is known to report $? of programs that terminated by a signal as > 256 + signal number instead of 128 + signal number like other POSIX > compliant shells. (ksh's behavior is still POSIX compliant in this regard.)
This patch works for me.
$ ksh t0005-signals.sh * ok 1: sigchain works * passed all 1 test(s)
Thanks for the explanation.