Re: Bad file descriptor with pipeline

2016-04-11 Thread Hédy GIRAUDEAU
Le 12/04/2016 04:00, Chet Ramey a écrit : > On 4/11/16 5:39 PM, Hédy GIRAUDEAU wrote: >> Hi, >> If i use : `strace bash -c "echo qsd | cat" 2>&1 | grep "close"` >> I get systematically : >> >> close(3)= 0 >> close(3)= 0 >> close(3)

Re: Bad file descriptor with pipeline

2016-04-11 Thread Chet Ramey
On 4/11/16 5:39 PM, Hédy GIRAUDEAU wrote: > Hi, > If i use : `strace bash -c "echo qsd | cat" 2>&1 | grep "close"` > I get systematically : > > close(3)= 0 > close(3)= 0 > close(3)= 0 > close(3)

Bad file descriptor with pipeline

2016-04-11 Thread Hédy GIRAUDEAU
Hi, If i use : `strace bash -c "echo qsd | cat" 2>&1 | grep "close"` I get systematically : close(3)= 0 close(3)= 0 close(3)= 0 close(3)= 0 close(3)