zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: exit status 0 after SIGINT
Date: Tue, 26 Sep 2017 10:49:47 -0700	[thread overview]
Message-ID: <170926104947.ZM15344@torch.brasslantern.com> (raw)
In-Reply-To: <757d2c4c-fb9f-d168-c70a-08560677a181@inlv.org>

On Sep 26, 11:57am, Martijn Dekker wrote:
}
} % kill -s INT $$ || echo oops
} % echo $?
} 1

I can't "git pull" because sf.net is down right now, but:


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;


  reply	other threads:[~2017-09-26 17:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170925125104epcas5p3948e0702e32903ad3a09070937edbb54@epcas5p3.samsung.com>
2017-09-25 12:50 ` Martijn Dekker
2017-09-25 13:57   ` Peter Stephenson
2017-09-26 10:57     ` Martijn Dekker
2017-09-26 17:49       ` Bart Schaefer [this message]
2017-09-27  8:35         ` Peter Stephenson
2017-09-27 19:59           ` Bart Schaefer
2017-09-26 18:15       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170926104947.ZM15344@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).