This commit is contained in:
yinkanglong
2023-08-13 16:09:29 +08:00
parent f068be44c3
commit 4c7ee762dc
47 changed files with 1564 additions and 444 deletions

View File

@@ -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 ! [[ ]] 为&& || !
数学运算: [] 不可以使用 [[ ]]可以使用+ - */ %
组合: 均可用各自逻辑符号连接的数字(运算)测试、文件测试、字符测试