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 42653
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: "echo | ps -j $(:) | cat | cat | cat" runs components in different process groups
- Date: Sun, 15 Apr 2018 19:58:04 +0100
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, 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=KGNjaUtUj7qm7dU2S6fCmptbUmGNM3tvB/Jd08LlP/Q=; b=cWBdIoscJkPgB09fJYyudjtJ6/vTE3zBnu7RgPM3BS3AMknDmDPuIEgkJHvfyzrv93 m/uM8jJRL+VJXuNIJbuYy9JODizEA/OKqA05B0Oh2PJ2TVG8VEnIaGuOz4rXHIsw7FA6 xBWZ+ZO6TG59AQfbFwj4EZYh9WFGPJqZUyzzeBeyWaiOSR3KnJjM2uOgG9z4WY0v2Pm/ BKiA7WTe1rcYmASCK1Y8t5YUfK4tRkUBVZ0bFXcpcSOms1WSugiJfoNt7QKQmleyaAZd X+X9XZGh4PqMxuKOk//4hssZgVaQZ/0S8P5TX6EO4kK3TaAmuTlAJiuRG2GKumPrQAak RVeQ==
- In-reply-to: <CAH+w=7ZVx_uJQkJgSn-4wdyfRece6AADPWb+S=F1q2oJWai67w@mail.gmail.com>
- 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: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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> <20180415162326.GA12549@chaz.gmail.com> <CAH+w=7ZVx_uJQkJgSn-4wdyfRece6AADPWb+S=F1q2oJWai67w@mail.gmail.com>
2018-04-15 10:38:07 -0700, Bart Schaefer:
> On Sun, Apr 15, 2018 at 9:23 AM, Stephane Chazelas <
> stephane.chazelas@xxxxxxxxx> wrote:
>
> >
> > Also note that
> >
> > echo $(sleep 10) & echo started
> >
> > Only outputs "started" after 10 seconds.
> >
>
> I would say that's actually correct. $(sleep 10) is *not* a background
> job, it's output has to be collected before the first "echo" can run. The
> shell has no intrinsic idea that there won't be any output.
But it could do that collection in the child process like all
other shells do.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author