Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re[2]: bug with eval, proc-subst and pipes
SC> NOK$ eval 'paste <(echo 1) <(echo 2) <(echo 3) <(echo 4)' | cat
SC> paste: /proc/self/fd/13: No such file or directory
SC> Reproduced with Zsh 5.0.2 on Debian amd64 on two different
SC> machines, not with 4.3.17 on Ubuntu 12.04 amd64
BS> It's a race condition of some kind. I can reproduce reliably with
BS>
BS> % (){ sleep 5; paste "$@" } <(echo 1)
BS>
BS> even without an "eval".
I don't know if it helps to get an idea what's going on, but
both variants work as expected with zsh 5.0.2 under the cygwin
environment:
$ uname -smo
CYGWIN_NT-6.1-WOW64 i686 Cygwin
$ mkdir /tmp/empty
$ ZDOTDIR=/tmp/empty zsh -f
$ autoload compinit
$ compinit
$ eval 'paste <(echo 1) <(echo 2) <(echo 3) <(echo 4)' | cat
1 2 3 4
$ (){ sleep 5; paste "$@" } <(echo 1)
1
$ print $ZSH_VERSION $ZSH_PATCHLEVEL
5.0.2 1.5778
Regards,
Manuel.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author