zsh-workers
 help / color / mirror / code / Atom feed
* SIGINT/TRAPINT Behaves Differently in 4.3.11
@ 2011-09-16  2:35 sorin.ionescu
  2011-09-16 17:17 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: sorin.ionescu @ 2011-09-16  2:35 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 724 bytes --]

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-02 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-16  2:35 SIGINT/TRAPINT Behaves Differently in 4.3.11 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
2011-10-02 17:04         ` Bart Schaefer

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).