1

我一直将 bc 与 <<< 运算符一起使用

bc <<< 3+3

但我想知道 <<< 到底是做什么的?它会回声和管道吗?

4

1 回答 1

0

根据 GNU bash 手册

3.6.7 Here Strings

A variant of here documents, the format is:

<<< word
The word is expanded and supplied to the command on its standard input.

所以我想这只是一个通过管道传输到标准输入的here字符串。

于 2013-03-25T22:57:24.543 回答