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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to