Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Can INT trap leave entire function stack
- X-seq: zsh-users 21598
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Can INT trap leave entire function stack
- Date: Mon, 30 May 2016 18:00:39 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=uW3wVyrhOdC3IuUx9/5gRRqM8FEv2SUgczyEfnyi3zU=; b=XaCle5P559pTMFD7IPA1ly7cAtYFDpCKLwJz9mqB3Wj5NKLt9YOZRe5+2kdCoCBEr2 2lMyaoa312DHudy1ZlUmxUB8WhTt6ZTZMxyv29tx2moaQJqfQBuG3YcuiDjTdLlLDzzk c5eyljw33KVNDxStsE6pGXqhWV/lZnmf7mpmrllTdbATowade7jKdxD3wy8TQD+aD0X2 h82cF7YI4PcYk7TW/lt81eZWO/llv0Mq24iR6+MeU2Zvg3Fx4Wccn/byYPRuuyp7udRt eudSz7HR/ikP1wGqpFYuuVXD4VtwAo49Ys2SwZgaLGyRCo4eTyNAaudDlLFgudv/086q 0c9Q==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author