Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: exit status 0 after SIGINT
On Tue, 26 Sep 2017 10:49:47 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> diff --git a/Src/exec.c b/Src/exec.c
> index bd242d1..0d2dc4e 100644
> --- a/Src/exec.c
> +++ b/Src/exec.c
> @@ -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;
I'll forget mine since this appeared first.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author