From 0e4aa6f2f64fb276537adecfe755a752a3fcccb1 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 5 Dec 2016 12:29:23 +0000 Subject: Additional case for ERR_RETURN and ERR_EXIT. Don't trigger just because status is non-zero at end of current shell group. --- Src/exec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 6e197ddf2..a439aec7f 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -429,6 +429,7 @@ execcursh(Estate state, int do_exec) cmdpop(); state->pc = end; + this_noerrexit = 1; return lastval; } -- cgit 1.4.1