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 <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Jul 9, 2010 at 09:05 UTC
0e418e568f4104ce1915263ae3ad66e290eebed8
1 file changed
+1
t/t0005-signals.sh
+1
@@ -13,6 +13,7 @@ test_expect_success 'sigchain works' '
13
test-sigchain >actual
14
case "$?" in
15
143) true ;; # POSIX w/ SIGTERM=15
16
+ 271) true ;; # ksh w/ SIGTERM=15
17
3) true ;; # Windows
18
*) false ;;
19
esac &&