Does the current version of msysgit support proces

2019-01-24 04:40发布

Under my version of msysgit, I can't use process substitution.

cat <(echo 'foo')
sh.exe": cannot make pipe for process substitution: Function not implemented

If I upgraded to the latest version of msysgit, would its version of msys / mingw be able to handle process substitution?

My current version of msysgit is 1.7.0.2.msysgit.0 and GNU bash is version 3.1.0(3)-release (i686-pc-msys).

2条回答
祖国的老花朵
2楼-- · 2019-01-24 05:27

Afraid this is still a no as of 1.7.6.msysgit.0 which has Bash 3.1.0(1).

bash-3.1$ bash --version
bash --version
GNU bash, version 3.1.0(1)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.
bash-3.1$ cat <(echo 'foo')
cat <(echo 'foo')
bash: cannot make pipe for process substitution: Function not implemented
查看更多
劳资没心,怎么记你
3楼-- · 2019-01-24 05:36

With Git 2.5.0 also the Bash is updated:

$ bash --version
GNU bash, version 4.3.39(3)-release (x86_64-pc-msys)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

So, now your command works fine:

$ cat <(echo 'foo')
foo
查看更多
登录 后发表回答