From 2b4f9bd1cdc7e6699a06d3d42d7dd6d21a2bf44e Mon Sep 17 00:00:00 2001 From: Amand Tihon Date: Mon, 15 Jun 2009 14:52:33 +0200 Subject: [PATCH] Print numeric exitcode if it's greater than 127 + len(signals) --- S22_exitcode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S22_exitcode b/S22_exitcode index 9888b34..230294d 100644 --- a/S22_exitcode +++ b/S22_exitcode @@ -5,7 +5,7 @@ parse_exitcode() { EX=`print -P %?` psvar[1]=$EX - if [[ $EX -ge 128 ]] + if [[ $EX -ge 128 && $EX -le (127+${#signals}) ]] then psvar[1]="${signals[${EX}-127]}" fi -- 2.39.5