From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3408 invoked by alias); 2 Oct 2011 10:24:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29812 Received: (qmail 8700 invoked from network); 2 Oct 2011 10:24:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=cGSlc7CRDe3H9KMsOUY+OCr8s5Aps9eBI+oCVbUmjhY=; b=wTJ0Oq8UpKUMeP+5cgaCjr7hG5h0/5wHbKj+xpXZ/gKjzKsPpKyhQPtT3pFSGki6PY gyCPp1k570C0MeyzzpfRn9MF7pVRKlD2aJFSbifYNRp3WT/zViqmhhGC7kyFLo8SDaTa UurymvOpTop04wZ//yxrCDxOdsXEYi0Rk4t3M= MIME-Version: 1.0 In-Reply-To: <20111001201434.54f83690@pws-pc.ntlworld.com> References: <68D8247F-256A-4E0B-9DD5-B7B7C11B87D9@uga.edu> <110925153156.ZM20307@torch.brasslantern.com> <20111001201434.54f83690@pws-pc.ntlworld.com> From: Julien Nicoulaud Date: Sun, 2 Oct 2011 12:23:57 +0200 Message-ID: Subject: Re: SIGINT/TRAPINT Behaves Differently in 4.3.11 To: Peter Stephenson Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=001636427062bb465b04ae4e429c --001636427062bb465b04ae4e429c Content-Type: text/plain; charset=ISO-8859-1 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 - 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 > On Sun, 25 Sep 2011 15:31:56 -0700 > Bart Schaefer 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, 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 > Web page now at http://homepage.ntlworld.com/p.w.stephenson/ > --001636427062bb465b04ae4e429c--