下面所有的操作都以‘1;’结尾,因为操作中的最后代码确定了该操作是成功(返回码为0)还是失败(返回码为1)。
All the actions below end with '1;' because the last code in the action determines whether the action succeeded (0) or failed (1) as a return code.
变量 "$?"提供最近所调用命令的返回码;在下面的示例中,它提供了执行 "ls" 命令的返回码。
The variable "$?" provides the return code of the command recently invoked; in the example below, it provides the return code of the execution of the "ls" command.
变量 "$?"提供最近所调用命令的返回码;在下面的示例中,它提供了执行 "ls" 命令的返回码。
The variable "$?" provides the return code of the command recently invoked; in the example below, it provides the return code of the execution of the "ls" command.
应用推荐