- 论坛徽章:
- 16
|
please man bash. then search \(\( and let:
man bash.
((expression))
The expression is evaluated according to the rules described below under ARITHMETIC EVALUATION. If the
value of the expression is non-zero, the return status is 0; otherwise the return status is 1. This is
exactly equivalent to let "expression".
let arg [arg ...]
Each arg is an arithmetic expression to be evaluated (see ARITHMETIC EVALUATION above). If the last
arg evaluates to 0, let returns 1; 0 is returned otherwise.
? Expands to the exit status of the most recently executed foreground pipeline.
|
评分
-
查看全部评分
|