[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicit redirection of background within pipeline
From: |
Martin Kealey |
Subject: |
Re: implicit redirection of background within pipeline |
Date: |
Thu, 14 Jan 2016 12:30:31 +1300 (NZDT) |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
On Wed, 13 Jan 2016, Chet Ramey wrote:
> On 1/13/16 4:08 AM, Andreas Schwab wrote:
> > Martin Kealey <martin@kurahaupo.gen.nz> writes:
> >
> >> What do other shells do? Ksh? Dash? Zsh?
> >
> > $ ksh -c 'printf "foo1\nfoo2\n" | { (read x; echo 1: $x) & (read x; echo 2:
> > $x) & }'
> > 1: foo1
> > 2: foo2
>
> I changed bash to behave like this, which I think is the most reasonable.
Agreed, thank you.
-Martin
- Re: implicit redirection of background within pipeline, (continued)
- Re: implicit redirection of background within pipeline, Martin Kealey, 2016/01/12
- Re: implicit redirection of background within pipeline, Andreas Schwab, 2016/01/13
- Re: implicit redirection of background within pipeline, Chet Ramey, 2016/01/13
- Re: implicit redirection of background within pipeline,
Martin Kealey <=
- Re: implicit redirection of background within pipeline, Andreas Schwab, 2016/01/13
- Re: implicit redirection of background within pipeline, Martin Kealey, 2016/01/13
- Re: implicit redirection of background within pipeline, Andreas Schwab, 2016/01/13
- Re: implicit redirection of background within pipeline, Martin Kealey, 2016/01/13
- Re: implicit redirection of background within pipeline, Chet Ramey, 2016/01/13
Re: implicit redirection of background within pipeline, Chet Ramey, 2016/01/12