From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6098 invoked by alias); 16 Sep 2011 02:35:21 -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: 29780 Received: (qmail 20808 invoked from network); 16 Sep 2011 02:35:19 -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, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer; bh=PamOMvXHKZ7s9DS5D3BERFpH4S7XpjTOfCqibSkqta0=; b=tncX+uTx/cNbJ/BwXFOmUsJq9pJxM6f4DnfkUqy5rhh599ge8kFFsPuTlg4XUwFklY lEBfrrhZSAFibKZXcYkOaYkstq9lCI+4e3fsStaaHPixttdSJwa2GrCwx63psWxlhF10 Zh5NYsYxz1IduzR5nNN5bc6wx3CIUwzhNi448= From: sorin.ionescu@gmail.com Content-Type: multipart/alternative; boundary="Apple-Mail=_A84AEAA8-F56B-44EE-B24C-4FD2F810CF2A" Subject: SIGINT/TRAPINT Behaves Differently in 4.3.11 Date: Thu, 15 Sep 2011 22:35:10 -0400 Message-Id: <68D8247F-256A-4E0B-9DD5-B7B7C11B87D9@uga.edu> To: zsh-workers@zsh.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) --Apple-Mail=_A84AEAA8-F56B-44EE-B24C-4FD2F810CF2A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello, 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. However, pressing CTRL + C AFTER the prompt has been displayed calls = TRAPINT. Is this a bug, or is this the new expected behaviour? This simple TRAPINT function should always be called whenever CTRL + C = is pressed. function TRAPINT() { echo "Inside TRAPINT" return $(( 128 + $1 )) } -- Sorin Ionescu --Apple-Mail=_A84AEAA8-F56B-44EE-B24C-4FD2F810CF2A--