Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "echo | ps -j $(:) | cat | cat | cat" runs components in different process groups
- X-seq: zsh-workers 42651
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: "echo | ps -j $(:) | cat | cat | cat" runs components in different process groups
- Date: Sun, 15 Apr 2018 17:23:26 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wjSoMRRtedl/4j19Jtt6dWGy/bI/rHLOhWL1xmpFCUo=; b=KdJYP46YbKmxddNzDLv+BbpaNxt/HQsdY33p6miU5DEOqQE+0IsWu0tqTOk6UwW2Z8 rOfeQFV9LhrLJJqVBS+kgbd37MJqtguuA+zOM9ashtp9WFFpWGfrRJgEycclr7XI46mb I9pJdDQa9gJaf3npfPOIEYy1SVvbFeoqNNZO1VdjqAcW35+ROWv52CJwQGRraHNMrJcn NW6S7w6wQEW2CwzMzBvnA9sGS26DmvI/l7NRaNm5j5vJT5oZ12W7H4IFrZV4UFv0Qpio JvmcLl8ngJHYja3FAVL8Elsujab8Fr55a32x5WCdP0yFaQb1wRFSAvRTgRJ8cpaZT/3m oPOQ==
- In-reply-to: <20180412172342.52df6b10@camnpupstephen.cam.scsc.local>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180323161612.GB4857@chaz.gmail.com> <180323163614.ZM10192@torch.brasslantern.com> <180323221959.ZM27569@torch.brasslantern.com> <20180324080514.txxyrb3qiztu4pqt@gmail.com> <CGME20180324221021epcas1p184507a6328dbd505b97db69c1f9d8194@epcas1p1.samsung.com> <180324150945.ZM32251@torch.brasslantern.com> <20180410124545.13fccd5d@camnpupstephen.cam.scsc.local> <20180410145926.64c4f671@camnpupstephen.cam.scsc.local> <180411151025.ZM19332@torch.brasslantern.com> <20180412172342.52df6b10@camnpupstephen.cam.scsc.local>
2018-04-12 17:23:42 +0100, Peter Stephenson:
[...]
> So I think this is a definite improvement, though it's probably not safe
> enough to sneak into 5.5.1.
[...]
Thanks, that's definitely an improvement indeed.
There are still a few problems. For instance, it takes 3 ^C to
interrupt:
sleep 10 $(sleep 11) | sleep 12 $(sleep 13) | sleep 14 $(sleep 15) | sleep 16 $(sleep 17)
The first one kills "sleep 11" (running in the shell's process
group), after which "sleep 10" and "sleep 13" start, the second
kills "sleep 10", the 3rd kills "sleep 13" and the command seems
to be aborted (sleep 12 and sleep 14 are not started for some
reason).
^Z still causes an unrecoverable dead-lock (the shell reading
the output of a suspended "sleep 11").
Also note that
echo $(sleep 10) & echo started
Only outputs "started" after 10 seconds.
sleep 10 | echo $((+)) | cat
still starts a pseudo-background job.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author