2011-05-05 38 views

回答

2

翻譯成英語程序員,它的 「if文件($f)不存在(-e)或(-o)文件($f)是symbolic link-L),然後......」

man bash有更多細節。

1

嗯,這很有趣。我們有[內置的第一個定義:

`EXPR1 -o EXPR2' 
     True if either EXPR1 or EXPR2 is true. 

...然後我們有用於該內置條件表達式定義:

`-o OPTNAME' 
    True if the shell option OPTNAME is enabled. The list of options 
    appears in the description of the `-o' option to the `set' builtin 
    (*note The Set Builtin::). 

顯然這裏的本意是第一個(如果該文件不存在或是一個鏈接),但我不知道爲什麼這個工程。

相關問題