diff options
Diffstat (limited to 'Src')
-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 3c13da476..438e30d0d 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -2339,7 +2339,7 @@ execcmd(Estate state, int input, int output, int how, int last1) lastval = 0; return; } else { - cmdoutval = 0; + cmdoutval = lastval; if (varspc) addvars(state, varspc, 0); if (errflag) |