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

bug with eval, proc-subst and pipes



Under:

ZDOTDIR=/some/new/dir zsh -f
autoload compinit
compinit

OK$ eval 'paste <(echo 1) <(echo 2) <(echo 3)' | cat
1       2       3

OK$ eval 'paste <(echo 1) <(echo 2) <(echo 3) <(echo 4)'
1       2       3       4

OK$ paste <(echo 1) <(echo 2) <(echo 3) <(echo 4) | cat
1       2       3       4

NOK$ eval 'paste <(echo 1) <(echo 2) <(echo 3) <(echo 4)' | cat
paste: /proc/self/fd/13: No such file or directory

That is, it occurs only with the "eval" with the "| something"
and with 4 process substitutions or more.

I can't reproduce it with zsh -f, and it starts to occur after
running "compinit". strangely not when compinit is called under
"set -x".

Reproduced with Zsh 5.0.2 on Debian amd64 on two different
machines, not with 4.3.17 on Ubuntu 12.04 amd64

-- 
Stephane



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