mirror of
https://github.com/Estom/notes.git
synced 2026-02-03 18:44:19 +08:00
合并
This commit is contained in:
@@ -154,9 +154,9 @@ home is a writable directory
|
||||
```
|
||||
数字测试: -eq -ne -lt -le -gt -ge,[[ ]]同 [ ]一致
|
||||
文件测试: -r、-l、-w、-x、-f、-d、-s、-nt、-ot,[[ ]]同 [ ]一致
|
||||
字符串测试: > < =(同==) != -n -z,不可使用“<=”和“>=”,[[ ]]同 [ ]<
|
||||
字符串测试: > < =(同==) != -n -z,不可使用“<=”和“>=”,[[ ]]同 [ ]
|
||||
|
||||
SPAN style="COLOR: rgb(0,1,2)">一致,但在[]中,>和<必须使用\进行转义,即\>和\<
|
||||
< >一致,但在[]中,>和<必须使用\进行转义,即\>和\<
|
||||
逻辑测试: []为 -a -o ! [[ ]] 为&& || !
|
||||
数学运算: [] 不可以使用 [[ ]]可以使用+ - */ %
|
||||
组合: 均可用各自逻辑符号连接的数字(运算)测试、文件测试、字符测试
|
||||
|
||||
Reference in New Issue
Block a user