Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

bug with named pipes and process substitution



Hi all,

I encountered a bug when running the following two commands:

mkfifo test_pipe
echo 1 | tee >(cat > test_pipe) | paste - test_pipe

In bash and zsh 5.0.2 it outputs "1 1" and then exits. In zsh 5.0.8
however, it outputs the same thing and hangs forever.

I bisected the repo for the commit that introduced this behaviour and
it was introduced in 3c5732223f65309c6820f15b8519f674bd21185b which
includes the patch from this thread
http://www.zsh.org/mla/workers/2013/msg00569.html

I haven't yet figured out how and what, since I'm not very familiar
with the codebase. I'll try to figure out a patch but if someone can
shed some light on what is going on that would be great.

System info:

$ echo $ZSH_VERSION $ZSH_PATCHLEVEL `uname -mo`
5.0.8 zsh-5.0.8-0-gf0068ed x86_64 GNU/Linux

Best,
Petros



Messages sorted by: Reverse Date, Date, Thread, Author