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

Re: "functions -c" and TRAPxxx



> On 09 June 2022 at 04:24 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Tue, Jun 7, 2022 at 7:57 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > I know most of what's going on there, but "functions -c" is creatin
> > an alternate name, and there is also the failure case of settrap()
> > returning nonzero to handle.
> 
> The following works for the case of settrap() succeeding, but I'm not
> sure how to force settrap() to fail.

Looks entirely plausible; given TRAP{INT,QUIT} already work this ought
to work too.

Looks like the only way for settrap to fail is using a signal number
that's not handled interactively.

pws




Messages sorted by: Reverse Date, Date, Thread, Author