- 论坛徽章:
- 33
|
回复 3# expert1
man csh 的部分 输出.- if (expr) then
- ...
- else if (expr2) then
- ...
- else
- ...
- endif If the specified expr is true then the commands to the first
- else are executed; otherwise if expr2 is true then the commands
- to the second else are executed, etc. Any number of else-if
- pairs are possible; only one endif is needed. The else part is
- likewise optional. (The words else and endif must appear at
- the beginning of input lines; the if must appear alone on its
- input line or after an else.)
复制代码 |
|