conditional transfer command 条件转移指令 ; [计] 条件转移命令
If a conditional command is the first command in a group of commands, the condition applies to all the commands in the group.
如果一个条件指令是一组指令中的第一条指令,则该条件适用与该组中的所有指令。
And because every UNIX command returns a status code reflecting success or failure, you can use any command as a conditional — not just the test operators.
而且由于每个UNIX命令都返回一个指示成功或失败的状态代码,因此,您可以使用任何命令作为“条件”——而不仅仅是使用测试操作符。
Then you use the conditional if statement to check the return code of the command.
然后,您使用条件型if语句,以检查该命令的返回代码。
应用推荐