Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

SIGINT/TRAPINT Behaves Differently in 4.3.11



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