]> git.alrj.org Git - zsh.d.git/commitdiff
Print numeric exitcode if it's greater than 127 + len(signals)
authorAmand Tihon <amand.tihon@iba-group.com>
Mon, 15 Jun 2009 12:52:33 +0000 (14:52 +0200)
committerAmand Tihon <amand.tihon@iba-group.com>
Mon, 15 Jun 2009 12:52:33 +0000 (14:52 +0200)
S22_exitcode

index 9888b3480d1754c3f2633ddfe75315e858303d2a..230294ddde62482a0b99b9b767177a7fe6d0b9d8 100644 (file)
@@ -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