Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: kill the LHS command of a pipe once the RHS command terminates
- X-seq: zsh-users 24026
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: kill the LHS command of a pipe once the RHS command terminates
- Date: Sat, 6 Jul 2019 21:54:52 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=X630adgOdyn4zTS8TQco4zj+ZRjjQ1BtW8rVdLSvvEk=; b=vraTuVKN2OWox0MzWrrnoLQRftpoxBkIDsluqziyock3+J/n7DzRZYqq5tMAbfhZDj Pv+1bJAOe4Ctm317F8utBCRvVJoAc5rFmCOWMdIbhhX3xQVBAXhhG8QD8c7+/opQAc4C WLUqN0ZCnslPvC6FDNuUTmT1NMGgzuKpSVtkwgwYNC7tbETF+jzF1CabzDG+BgxYNukD 5MQyBpJVs3nbZrPL8ctwbHic1tUEeTs1Cp6wYKCoTe5x2rimPiXcKjuRCiVH4nq85aoM GWktHwMvUCgKDn+DTA3WBPyTxyu0zZo0y0i4EMo2BLb6PD2rA6GYmz+zxY22/ZDWfY0p GqGQ==
- In-reply-to: <20190706235537.GB14626@zira.vinc17.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20190628110430.GA13790@zira.vinc17.org> <CAH+w=7bUROc+9idB-K7ja_mO6BfNAnj0Hq+gUs1678p3FDE9Gg@mail.gmail.com> <20190706235537.GB14626@zira.vinc17.org>
On Sat, Jul 6, 2019 at 4:56 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> On 2019-06-29 09:17:13 -0700, Bart Schaefer wrote:
> >
> > If you're going to kill the right-side with an interrupt or other
> > signal, you'll have to arrange to trap that so that the subsequent
> > kill isn't also skipped.
>
> but I would like to get rid of the job status that appear at the end.
zsh% () {
setopt localoptions nonotify nomonitor
coproc { echo foo; exec >&-; sleep 60 }
trap "kill $!" INT EXIT
less -f <&p
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author