From: Sweth Chandramouli <svc@sweth.net>
To: ZSH Users <zsh-users@sunsite.dk>
Subject: Re: zsh dumping core because I don't grok TRAPEXIT
Date: Sat, 8 Sep 2001 02:13:31 -0400 [thread overview]
Message-ID: <20010908021331.A14998@astaroth.sweth.net> (raw)
In-Reply-To: <1010908055006.ZM18450@candle.brasslantern.com>
[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]
On Sat, Sep 08, 2001 at 05:50:06AM +0000, Bart Schaefer wrote:
> } ; I know that 4.0.2 is out now, but I just haven't had a
> } chance to install it yet.
>
> You need to install 4.0.2, or at least 3.1.9-dev-2+, because there were
> several bug fixes in memory management of the exit trap handler shortly
> after the 3.1.9 release. This is almost certainly what is causing your
> core dump.
Ah. It figures. OK, installing 4.0.2 has been added to
the todo list for this week.
> } I'd still like to know how TRAPEXIT is really supposed to work
>
> I'd like to know why mutt is exiting with 23. It doesn't when I try it.
I'll be sending a mail to mutt-users next to discuss
that particular mystery. :)
> Anyway, TRAPEXIT is supposed to work pretty much like you thought it was.
> It's the only trap-function that -always- behaves as if LOCAL_TRAPS is
> set (which is how it got memory-management problems in the first place).
> That is, the exit trap applies to all functions and subshells called
> from the function that defines it, but it becomes undefined after it
> is called when the defining function exits.
OK. The more I think about it, though, the less I see
when TRAPEXIT would really be useful. How would
function TRAPEXIT {
do_something
}
do_other_thing
ever be different than
do_other_thing ; do_something
?
-- Sweth.
--
Sweth Chandramouli ; <svc@sweth.net>
President, Idiopathic Systems Consulting
[-- Attachment #2: Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2001-09-08 6:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-07 22:04 Sweth Chandramouli
2001-09-08 5:50 ` Bart Schaefer
2001-09-08 6:13 ` Sweth Chandramouli [this message]
2001-09-08 7:12 ` Bart Schaefer
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=20010908021331.A14998@astaroth.sweth.net \
--to=svc@sweth.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).