[Bugs-team] Odd thing about bug #745

Julian Wiesener jw at vtoc.de
Wed Jul 27 21:52:39 UTC 2011


Hi,

to reproduce the problem you need to start a bash, because it's related
to subshells in bash that do not exit. cat is also an built-in in ksh as
well as bash, so you can expect an different behaviour on different
shells. I can't tell why cat on ksh does echo foo twice on your system
and also wasn't able to reproduce it. The reported problem is observable
if you just try to read from stdin from an subshell and then Press
Control+D to exit the subshell:

/usr/bin/cat <(/usr/bin/cat -) | /usr/bin/cat

Try ^D it on ksh, the subshell exits as expected, try it on bash, the
subshell will not die. I used /usr/bin/cat for that examle, thus it's
obvious that differences doesn't get introduced by different cat
implementations.



Regards,
Julian




More information about the Bugs-team mailing list