zsh-users
 help / color / mirror / code / Atom feed
* trap does not work in a trap function?
@ 2010-09-09  8:02 Dominik Vogt
  2010-09-09  8:17 ` Dominik Vogt
  0 siblings, 1 reply; 8+ messages in thread
From: Dominik Vogt @ 2010-09-09  8:02 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

The attached small script behaves in an unexpected way (at least to me):

  $ ./sigtest
  shutdown
  shutdown

Why is the shutdown function called again by exit when the EXIT trap was just removed?  This looks like the trap builtin does not properly work from within a trap handler.
-- 
Achtung Sicherheitswarnung: GMX warnt vor Phishing-Attacken!
http://portal.gmx.net/de/go/sicherheitspaket

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-09-09 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-09  8:02 trap does not work in a trap function? Dominik Vogt
2010-09-09  8:17 ` Dominik Vogt
2010-09-09  8:57   ` Peter Stephenson
2010-09-09  9:44     ` Mikael Magnusson
2010-09-09  9:56       ` Peter Stephenson
2010-09-09 10:39         ` Mikael Magnusson
2010-09-09 12:03     ` Dominik Vogt
2010-09-09 13:41       ` Peter Stephenson

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).