From: Bart Schaefer <schaefer@brasslantern.com>
To: <zsh-workers@zsh.org>
Subject: Re: 4.3.11 TRAPEXIT() on cygwin
Date: Tue, 11 Jan 2011 07:38:54 -0800 [thread overview]
Message-ID: <110111073854.ZM1766@torch.brasslantern.com> (raw)
In-Reply-To: <20110111093829.115a9c96@pwslap01u.europe.root.pri>
On Jan 11, 9:38am, Peter Stephenson wrote:
}
} This tries to summarize the differences I know about.
The other thing worth mentioning is that you can't have both of them
at once. If you set a list trap, it supplants the function trap in
the same scope, and vice-versa.
Also you can't restore the previously scoped trap by removing the new
one -- "unfunction TRAPEXIT" deletes the trap entirely.
This, however, might be a bug:
----
% trap 'print list' EXIT; unfunction TRAPEXIT; print exiting; exit
unfunction: no such hash table element: TRAPEXIT
exiting
----
Removing the TRAPEXIT function deletes the EXIT list trap even if there
is no TRAPEXIT function.
prev parent reply other threads:[~2011-01-11 15:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 0:16 Anthony Heading
2011-01-11 0:46 ` Mikael Magnusson
2011-01-11 1:46 ` Anthony Heading
2011-01-11 1:50 ` Mikael Magnusson
2011-01-11 2:54 ` Anthony Heading
2011-01-11 3:25 ` Mikael Magnusson
2011-01-11 3:27 ` Mikael Magnusson
2011-01-11 9:38 ` Peter Stephenson
2011-01-11 15:38 ` Bart Schaefer [this message]
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=110111073854.ZM1766@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).