开发者

Purpose of double angle brackets on the bash command line?

开发者 https://www.devze.com 2023-04-11 07:21 出处:网络
I\'m trying to understand the following command: user$ bash < <(curl -s https://something.com ) What 开发者_运维技巧do the < < do?It\'s not < < but first < which means input re

I'm trying to understand the following command:

user$ bash < <(curl -s https://something.com )

What 开发者_运维技巧do the < < do?


It's not < < but first < which means input redirection and then <( ... ) which means run the command inside the braces and make from that a file argument.

This looks to me quite equivalent as

curl -s https://something.com | bash
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号