可能有人请解释这个bash命令? [英] Could someone please explain this bash command?
本文介绍了可能有人请解释这个bash命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从网站 RVM :
bash < <( curl https://rvm.io/releases/rvm-install-head )
这是什么第一个小于号吗?关于什么&LT;?(
我知道这是一个愚蠢的问题,但我很想了解这
What does that first less-than symbol do? What about the <(
? I know this is a stupid question, but I'd love to understand this.
推荐答案
击的进程替换替换≤(...)
和&GT;(...)
从/到管道儿童。因此,整个事情的意思是创建卷曲...
管道,并用它作为标准输入打坏。
Bash's process substitution replaces <( ... )
and >( ... )
with pipes from/to children. Hence the whole thing means "create a pipe from curl ...
, and use it as stdin to bash".
相当没有意义,倒不如写
Rather pointless, it would be better written
curl -L https://get.rvm.io | bash
这篇关于可能有人请解释这个bash命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文