From: Amand Tihon Date: Mon, 15 Jun 2009 12:52:33 +0000 (+0200) Subject: Print numeric exitcode if it's greater than 127 + len(signals) X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=commitdiff_plain;h=2b4f9bd1cdc7e6699a06d3d42d7dd6d21a2bf44e Print numeric exitcode if it's greater than 127 + len(signals) --- 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