1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

41767: preserve nonzero exit status on interrupt

This commit is contained in:
Barton E. Schaefer 2017-09-27 20:34:11 -07:00
parent 6230e82d44
commit 7a0718796a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2017-09-27 Barton E. Schaefer <schaefer@zsh.org>
* 41767: Src/exec.c: preserve nonzero exit status on interrupt
2017-09-27 Peter Stephenson <p.stephenson@samsung.com>
* 41764 (test tweaked): Doc/Zsh/params.yo, Src/params.c,

View file

@ -3199,7 +3199,8 @@ execcmd_exec(Estate state, Execcmd_params eparams,
}
if (errflag) {
lastval = 1;
if (!lastval)
lastval = 1;
if (oautocont >= 0)
opts[AUTOCONTINUE] = oautocont;
return;