diff options
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index c18f3cd1e..6a7dbb1e1 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -2702,7 +2702,7 @@ execcmd(Estate state, int input, int output, int how, int last1) if (varspc) addvars(state, varspc, 0); if (errflag) - lastval = errflag ? 1 : 0; + lastval = 1; else lastval = cmdoutval; if (isset(XTRACE)) { |