From 0e418e568f4104ce1915263ae3ad66e290eebed8 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Fri, 9 Jul 2010 09:05:16 +0200 Subject: [PATCH] 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 --- t/t0005-signals.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/t0005-signals.sh b/t/t0005-signals.sh index 09f855af3e..93e58c00e8 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 && -- 2.11.4.GIT