2013-03-25 74 views
0

我一直使用BC與< < <運營商這樣<<< bash運算符會發生什麼?

bc <<< 3+3 

但我想知道什麼呢< < <真的?它回聲和管道?

+0

這幾乎等同於'echo 3 + 3 | bc' – 2013-03-25 23:06:47

回答

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. 

所以我想這只是一個被管道輸送到這裏標準輸入字符串。

+0

這是一個_here-string_ – 2013-03-25 22:58:45