From: Johannes Sixt Date: Fri, 9 Jul 2010 07:05:16 +0000 (+0200) Subject: t0005: work around strange $? in ksh when program terminated by a signal X-Git-Tag: v1.7.2-rc3~3^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e418e568f4104ce1915263ae3ad66e290eebed8;p=git.git t0005: work around strange $? in ksh when program terminated by a signal ksh93 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). Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/t/t0005-signals.sh b/t/t0005-signals.sh index 09f855af3..93e58c00e 100755 --- a/t/t0005-signals.sh +++ b/t/t0005-signals.sh @@ -13,6 +13,7 @@ test_expect_success 'sigchain works' ' test-sigchain >actual case "$?" in 143) true ;; # POSIX w/ SIGTERM=15 + 271) true ;; # ksh w/ SIGTERM=15 3) true ;; # Windows *) false ;; esac &&