Subject: Re: Weird issue with pipeviewer and multiple pipes
From: Bart Schaefer <[email-masked]>
To: Zsh hackers list <[email-masked]>
Date: Fri, 6 May 2016 14:55:24 -0700
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On May 6, 2016 2:41 PM, "Peter Stephenson" <[email-masked]>
wrote:
>
> On Tue, 3 May 2016 20:56:14 -0700
> Bart Schaefer <[email-masked]> wrote:
> >On Tue, May 3, 2016 at 6:15 PM, Jaron L Tibbitts III <[email-masked]>
wrote:
> > >
> > > [2]  + 11459 done                    echo 1 |
> > >        11461 suspended (tty output)  pv -l -s $(echo 1) |
> > >        11462 interrupt               cat
> >
> > I don't know why the $(echo) makes any
> > difference to it receiving the TTOU in the first place.
>
> Actually, it looks like This Can't Possibly Happen, since $(echo 1) is
> over and done with by the time the pv is started; we've got the output,
> closed the fd, and waited for the process to finish (by PID).  So there
> is some weird lingering side effect.

Something to do with list_pipe_* handling?  Is the parent confused about
the state of the child that will eventually exec pv ?