Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

trap does not work in a trap function?



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


Messages sorted by: Reverse Date, Date, Thread, Author