Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
SIGINT/TRAPINT Behaves Differently in 4.3.11
- X-seq: zsh-workers 29780
- From: sorin.ionescu@xxxxxxxxx
- To: zsh-workers@xxxxxxx
- Subject: SIGINT/TRAPINT Behaves Differently in 4.3.11
- Date: Thu, 15 Sep 2011 22:35:10 -0400
- 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=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author