* Can INT trap leave entire function stack
@ 2016-05-30 16:00 Sebastian Gniazdowski
0 siblings, 0 replies; only message in thread
From: Sebastian Gniazdowski @ 2016-05-30 16:00 UTC (permalink / raw)
To: Zsh Users
Hello,
I do:
myfun() {
setopt localtraps
trap "return" TERM INT QUIT
trap "-morlib_end" EXIT
otherfun
sleep 60
}
to have -morlib_end nicely called at any exit of function. The problem
is, if the code enters sub-function "otherfun", Ctrl-C interrupts that
function, and one other Ctrl-C is needed. I would like to leave entire
function stack if that's possible. Is there any trick?
Best regards,
Sebastian Gniazdowski
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-30 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-30 16:00 Can INT trap leave entire function stack Sebastian Gniazdowski
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).