From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: "functions -c" and TRAPxxx
Date: Thu, 9 Jun 2022 13:51:55 -0700 [thread overview]
Message-ID: <CAH+w=7b3ijAB4Snrp_w4YfJgdvef5t0WD6foOi3C-EFe59uZow@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7aU9GTvjVHjbdqfvjAmJxQ-xJaHU2Y+4pgGkD_JkETeSg@mail.gmail.com>
On Thu, Jun 9, 2022 at 8:19 AM Bart Schaefer <schaefer@brasslantern.com> 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.
prev parent reply other threads:[~2022-06-09 20:52 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
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 [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7b3ijAB4Snrp_w4YfJgdvef5t0WD6foOi3C-EFe59uZow@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).