2010-04-15 62 views

回答

9

它表示「和」。 -o是「或」。

man bash

expr1 -a expr2 
        True if both expr1 and expr2 are true. 
3

引用4.1 Bourne Shell Builtins(即手動,在線,與錨定件)

test
[
   評估條件 表達式expr。每個運算符和 操作數必須是單獨的參數。
   表達式由以下在Bash 條件表達式中描述的 原色組成。
    test 不接受任何選項,也不接受任何選項,也不接受 作爲標誌選項結束的參數 - 。
...
expr1 -a expr2
    TRUE,如果表達式1和表達式2都是如此。

相關問題