zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Sweth Chandramouli <svc@sweth.net>, ZSH Users <zsh-users@sunsite.dk>
Subject: Re: zsh dumping core because I don't grok TRAPEXIT
Date: Sat, 8 Sep 2001 05:50:06 +0000	[thread overview]
Message-ID: <1010908055006.ZM18450@candle.brasslantern.com> (raw)
In-Reply-To: <20010907180418.A13819@astaroth.sweth.net>

On Sep 7,  6:04pm, Sweth Chandramouli wrote:
}
} (astaroth)/tmp/zsh_is_wonky: echo $ZSH_VERSION
} 3.1.9
} 
} 	; 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.

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

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.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2001-09-08  5:50 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 [this message]
2001-09-08  6:13   ` Sweth Chandramouli
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=1010908055006.ZM18450@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=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).