From: DervishD <zsh@dervishd.net>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Why EXIT traps aren't run inside other traps?
Date: Thu, 5 Jan 2006 23:11:09 +0100 [thread overview]
Message-ID: <20060105221109.GA7754@DervishD> (raw)
Hi all :)
Bash runs EXIT traps within any other trap, and GNU autoconf
seems to depend on this. I know that SUS (POSIX) doesn't say anything
about this, but...
I've read zsh-users 3513 and a few more messages, but I still
don't know if this is a common behaviour or not.
As usual, this problem is affecting me because I have to do some
cleanups when exiting, and I want to run the EXIT trap after, let's
say, the INT trap. I could use a function, and call that function
from within the traps, but unfortunately I must write this script for
maximum portability, so functions may be a problem :((((
Should I live with it? Are there more shells with the same
behaviour?
Thanks a lot in advance :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
next reply other threads:[~2006-01-05 22:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-05 22:11 DervishD [this message]
2006-01-06 13:01 ` Vincent Lefevre
2006-01-06 21:54 ` DervishD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060105221109.GA7754@DervishD \
--to=zsh@dervishd.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).