From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: How to propagate SIGTERM to the foreground job, if any?
Date: Sun, 21 Apr 2024 14:25:31 -0700 [thread overview]
Message-ID: <CAH+w=7YUW+NkpRek4QAMkqRgYYhHZn5kwY_X8Go+aroEDySyiw@mail.gmail.com> (raw)
In-Reply-To: <20240421174358.GC146837@qaa.vinc17.org>
On Sun, Apr 21, 2024 at 10:44 AM Vincent Lefevre <vincent@vinc17.net> wrote:
>
> > xterm was just a very simple example. In practice, several commands
> > are involved, and among them, there are zsh functions that may need
> > to affect the environment.
This seems to work:
trap 'kill -TERM -$$ ; exit' TERM
> Moreover, a Ctrl-C in the terminal doesn't seem to be handled
> correctly
Which terminal?
> (here, ssh-add with several files in argument is executed
> via zsh functions, but it refuses to quit on Ctrl-C).
Does this mean you can't interrupt it while it's prompting for a passphrase?
Can you reproduce this with something other than ssh-add ?
next prev parent reply other threads:[~2024-04-21 21:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-19 17:17 Vincent Lefevre
2024-04-19 18:30 ` Bart Schaefer
2024-04-19 19:00 ` Vincent Lefevre
2024-04-19 20:06 ` Bart Schaefer
2024-04-19 21:32 ` Vincent Lefevre
2024-04-21 4:09 ` Bart Schaefer
2024-04-21 17:29 ` Vincent Lefevre
2024-04-21 17:43 ` Vincent Lefevre
2024-04-21 21:25 ` Bart Schaefer [this message]
2024-04-21 23:59 ` Vincent Lefevre
2024-04-22 0:41 ` Bart Schaefer
2024-04-23 15:17 ` Vincent Lefevre
2024-04-23 17:32 ` Bart Schaefer
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=7YUW+NkpRek4QAMkqRgYYhHZn5kwY_X8Go+aroEDySyiw@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=zsh-users@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).