Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
trap does not work in a trap function?
- X-seq: zsh-users 15374
- From: "Dominik Vogt" <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: trap does not work in a trap function?
- Date: Thu, 09 Sep 2010 10:02:14 +0200
- 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
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