[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicit redirection of background within pipeline
From: |
Chet Ramey |
Subject: |
Re: implicit redirection of background within pipeline |
Date: |
Tue, 12 Jan 2016 15:23:08 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 1/10/16 2:23 AM, Martin D Kealey wrote:
> Bash Version: 4.3
> Patch Level: 11
> Release Status: release
>
> Description:
> The first backgrounded element within a pipeline component has its
> stdin redirected to /dev/null; this does not apply to the second and
> subsequent background elements.
>
> On a Linux system this can be observed with:
> echo x | ( ls -ld /proc/self/fd/0 &
> ls -ld /proc/self/fd/0 &
> wait )
>
> On other systems it is apparent simply with:
> echo x | ( cat & wait )
Thanks for the report. I fixed this family of problems and the fix will
be in the next bash release, as well as the next devel snapshot.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Re: implicit redirection of background within pipeline, (continued)
- Re: implicit redirection of background within pipeline, Chet Ramey, 2016/01/11
- 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, 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, 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 <=