Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "functions -c" and TRAPxxx
- X-seq: zsh-workers 50361
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: "functions -c" and TRAPxxx
- Date: Thu, 9 Jun 2022 13:51:55 -0700
- Archived-at: <https://zsh.org/workers/50361>
- In-reply-to: <CAH+w=7aU9GTvjVHjbdqfvjAmJxQ-xJaHU2Y+4pgGkD_JkETeSg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7Yp+vr_zbAd3YELD_AN_JTi7R_yDFTM7vt+X6AR00=z5A@mail.gmail.com> <1148576327.671240.1654595869665@mail2.virginmedia.com> <CAH+w=7asDd+fxxcqg9c=DcKfo1gKSnuyL3PskX7Fdf192Hfwdg@mail.gmail.com> <CAH+w=7ZJJv4KEXdW=2Pgqk+1YxjrmwX-HA5EBo00ZPgfM6N=gg@mail.gmail.com> <1500085568.729173.1654764913871@mail2.virginmedia.com> <CAH+w=7aU9GTvjVHjbdqfvjAmJxQ-xJaHU2Y+4pgGkD_JkETeSg@mail.gmail.com>
On Thu, Jun 9, 2022 at 8:19 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> So as far as I can tell it's not possible for settrap() to fail (on
> ubuntu, anyway) if getsignum() succeeds.
Hmm, I have a different result now, so I must have ... run the wrong
build, before?
% for x in $(kill -l); do
for> { functions -c trapper TRAP$x } always { TRY_BLOCK_ERROR=0 }
for> done
zsh: can't trap SIGTSTP in interactive shells
zsh: can't trap SIGTTIN in interactive shells
zsh: can't trap SIGTTOU in interactive shells
Interesting that failing to set a trap is a hard error condition.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author