help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: "functions -c" and TRAPxxx
Date: Tue, 7 Jun 2022 10:57:49 +0100 (BST)	[thread overview]
Message-ID: <1148576327.671240.1654595869665@mail2.virginmedia.com> (raw)
In-Reply-To: <CAH+w=7Yp+vr_zbAd3YELD_AN_JTi7R_yDFTM7vt+X6AR00=z5A@mail.gmail.com>

> On 07 June 2022 at 02:59 Bart Schaefer <schaefer@brasslantern.com> wrote:
> I'm not feeling quite knowledgeable enough about settrap /
> removetrapnode vis-a-vis reference counting to offer a patch for this
> yet, so if someone else wants to jump in or educate me, please do.
> Creating a TRAPxxx function by "aliasing" to another function with
> "functions -c" does not create the expected trap handler.

I don't think there's any magic for this, it'll have to be ad hoc
calls to settrap and unsettrap based on the function name.


  reply	other threads:[~2022-06-07  9:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-07  1:59 Bart Schaefer
2022-06-07  9:57 ` Peter Stephenson [this message]
2022-06-07 14:57   ` Bart Schaefer
2022-06-09  3:24     ` Bart Schaefer
2022-06-09  8:55       ` Peter Stephenson
2022-06-09 15:19         ` Bart Schaefer
2022-06-09 20:51           ` 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1148576327.671240.1654595869665@mail2.virginmedia.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    --subject='Re: "functions -c" and TRAPxxx' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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