Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "functions -c" and TRAPxxx
- X-seq: zsh-workers 50343
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: "functions -c" and TRAPxxx
- Date: Tue, 7 Jun 2022 10:57:49 +0100 (BST)
- Archived-at: <https://zsh.org/workers/50343>
- Importance: Medium
- In-reply-to: <CAH+w=7Yp+vr_zbAd3YELD_AN_JTi7R_yDFTM7vt+X6AR00=z5A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7Yp+vr_zbAd3YELD_AN_JTi7R_yDFTM7vt+X6AR00=z5A@mail.gmail.com>
> On 07 June 2022 at 02:59 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author