bug-bash
[Top][All Lists]
Advanced

[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 <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]