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

发布于 2024-09-28 13:09:02 字数 304 浏览 1 评论 0原文

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

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

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

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

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).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬色的秋千 2024-10-05 13:09:02

恐怕从 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

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
星軌x 2024-10-05 13:09:02

使用 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>

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

$ cat <(echo 'foo')
foo

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文