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)                                = 0
close(3)                                = 0
close(3)                                = 0
close(3)                                = 0
close(4)                                = 0
close(4)                                = -1 EBADF (Bad file descriptor)
close(3)                                = 0
close(3)                                = -1 EBADF (Bad file descriptor)


I don't know if it's a bug or not. This error happens everytime a
pipeline is used.


GNU bash, version 4.3.42(1)-release (x86_64-unknown-linux-gnu)

We discussed about it here :
(french) zestedesavoir.com/forums/sujet/5779/bash-et-les-bugs/

Nheir sayed that he saw something in the file function execute_pipeline
of the file execute_cmd.c


Reply via email to