Re: Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-04 Thread Chet Ramey
On 6/3/12 8:20 AM, Davide Baldini wrote: > Machine: i486 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -O2 -march='i486' (plus the flags added by Makefile) > uname output: Linux debianBunker 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 > UTC 2011 i686 GNU/Linux > Machine Type: i486-pc-linux-gnu

Re: Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-03 Thread Davide Baldini
On 06/03/12 17:01, Geir Hauge wrote: > 2012/6/3 Davide Baldini : >> Description: >> In the following test script I run an elementary coprocess to which the >> echo built-in, run in background, attaches its standard-output: >> >>#!/bin/bash >># TEST 1 >>coproc /bin/sleep 100 >>echo >

Re: Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-03 Thread Geir Hauge
2012/6/3 Davide Baldini : > Description: > In the following test script I run an elementary coprocess to which the > echo built-in, run in background, attaches its standard-output: > >    #!/bin/bash >    # TEST 1 >    coproc /bin/sleep 100 >    echo >&${COPROC[1]} & > > The script always fails, fo

Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-03 Thread Davide Baldini
Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -march='i486' (plus the flags added by Makefile) uname output: Linux debianBunker 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC 2011 i686 GNU/Linux Machine Type: i486-pc-linux-gnu Bash Version: 4.2.0(5)-release Patch Level: 5 Release