about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-05-02 13:08:19 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-05-02 13:08:19 +0000
commit9420498acfbe4e7ef99adca7cc4eb6bf21c1d00d (patch)
tree651e66a220aa8c260e7838cb528bcd329688de1a /Src/exec.c
parentf3be526791ff209c9858883c2cf4e2ed71ed6e14 (diff)
downloadzsh-9420498acfbe4e7ef99adca7cc4eb6bf21c1d00d.tar.gz
zsh-9420498acfbe4e7ef99adca7cc4eb6bf21c1d00d.tar.xz
zsh-9420498acfbe4e7ef99adca7cc4eb6bf21c1d00d.zip
11066: false || true was trigerring trap on ZERR
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c
index bc9edce2c..33f28b53b 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -842,7 +842,8 @@ execlist(Estate state, int dont_change_job, int exiting)
 			 * for this sublist.                                   */
 			donetrap = 1;
 			goto sublist_done;
-		    }
+		    } else if (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END)
+			donetrap = 1;
 		}
 		cmdpush(CS_CMDAND);
 		break;
@@ -867,7 +868,8 @@ execlist(Estate state, int dont_change_job, int exiting)
 			 * for this sublist.                                   */
 			donetrap = 1;
 			goto sublist_done;
-		    }
+		    } else if (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END)
+			donetrap = 1;
 		}
 		cmdpush(CS_CMDOR);
 		break;