From: Julien Nicoulaud <julien.nicoulaud@gmail.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-workers@zsh.org
Subject: Re: SIGINT/TRAPINT Behaves Differently in 4.3.11
Date: Sun, 2 Oct 2011 12:23:57 +0200 [thread overview]
Message-ID: <CA+mcLN5ctrYhNpwqzi+qiZ4yoTpqY2n_A8MBUAsgeLYTm5XSpA@mail.gmail.com> (raw)
In-Reply-To: <20111001201434.54f83690@pws-pc.ntlworld.com>
[-- Attachment #1: Type: text/plain, Size: 1708 bytes --]
If this can help, I observed a change in the way TRAPINT behaves since
4.3.11 too. I have the following snippet in my .zshrc, which forces saving
cancelled commands to history (from some thread in zsh-users):
TRAPINT () {
zle && print -s -- $BUFFER
return $1
}
Since 4.3.11, the following sequence gets the shell stuck with a "TRAPINT:1:
command not found: -s" error message:
- Type something
- Call _complete_help
- <Ctrl><C>
I don't know whether this is related with sorin's one, but it used to work
fine before.
-- Julien
2011/10/1 Peter Stephenson <p.w.stephenson@ntlworld.com>
> On Sun, 25 Sep 2011 15:31:56 -0700
> Bart Schaefer <schaefer@brasslantern.com> wrote:
> > On Sep 16, 10:17am, Bart Schaefer wrote:
> > } Subject: Re: SIGINT/TRAPINT Behaves Differently in 4.3.11
> > }
> > } On Thu, Sep 15, 2011 at 7:35 PM, <sorin.ionescu@gmail.com> wrote:
> > } >
> > } > I have the following call tree: function prompt_theme_precmd() ->
> function git-info() -> SUBSHELL -> function git() -> hub -> Git.
> > } >
> > } > On ZSH 4.3.10, pressing CTRL + C while the above is executing calls
> > } > the shell's TRAPINT function, which is the expected behaviour, but
> > } > since 4.3.11, SIGINT is sent only to the executing process (Git), and
> > } > the shell's TRAPINT function is no longer called.
> >
> > I've been doing some experiments to try to reproduce this, but I can't
> > make it happen. I always get the TRAPINT called when I interrupt a job
> > started from precmd.
>
> This is as far as I got, too, but my attempts have not been remotely
> exhaustive.
>
> --
> Peter Stephenson <p.w.stephenson@ntlworld.com>
> Web page now at http://homepage.ntlworld.com/p.w.stephenson/
>
next prev parent reply other threads:[~2011-10-02 10:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 2:35 sorin.ionescu
2011-09-16 17:17 ` Bart Schaefer
2011-09-25 22:31 ` Bart Schaefer
2011-10-01 19:14 ` Peter Stephenson
2011-10-02 10:23 ` Julien Nicoulaud [this message]
2011-10-02 17:04 ` Bart Schaefer
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=CA+mcLN5ctrYhNpwqzi+qiZ4yoTpqY2n_A8MBUAsgeLYTm5XSpA@mail.gmail.com \
--to=julien.nicoulaud@gmail.com \
--cc=p.w.stephenson@ntlworld.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).