From 9420498acfbe4e7ef99adca7cc4eb6bf21c1d00d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 2 May 2000 13:08:19 +0000 Subject: 11066: false || true was trigerring trap on ZERR --- Src/exec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Src') 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; -- cgit 1.4.1