Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "functions -c" and TRAPxxx



> 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