当前版本的msysgit是否支持进程替换?

And*_*imm 12 ipc mingw msys msysgit

在我的msysgit版本下,我无法使用进程替换.

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

如果我升级到最新版本的msysgit,它的msys/mingw版本是否能够处理进程替换?

我当前版本的msysgit是1.7.0.2.msysgit.0,GNU bash是版本3.1.0(3)-release(i686-pc-msys).

Yur*_*dow 10

害怕这仍然是1.7.6.msysgit.0,它有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
Run Code Online (Sandbox Code Playgroud)

  • 版本1.9.2-preview20140411仍然没有.Bash是3.1.0(1). (4认同)

Sar*_*ran 5

使用Git 2.5.0还可以更新Bash:

$ 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>
Run Code Online (Sandbox Code Playgroud)

所以,现在你的命令工作正常:

$ cat <(echo 'foo')
foo
Run Code Online (Sandbox Code Playgroud)