Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to propagate SIGTERM to the foreground job, if any?
On Sun, Apr 21, 2024 at 10:44 AM Vincent Lefevre <vincent@xxxxxxxxxx> 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 ?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author