- 论坛徽章:
- 0
|
本帖最后由 kala_fly 于 2010-06-09 14:38 编辑
if list; then list; [ elif list; then list; ] ... [ else list; ] fi
The if list is executed. If its exit status is zero, the then list is
executed. Otherwise, each elif list is executed in turn, and if its
exit status is zero, the corresponding then list is executed and the
command completes. Otherwise, the else list is executed, if present.
The exit status is the exit status of the last command executed, or
zero if no condition tested true.
[list=2]
test
Exit with the status determined by EXPRESSION.Exit with the status determined by EXPRESSION. |
|