As the test man page states, the test command evaluates expression parameters and, if the expression value is True, returns a zero (True) exit value.
正如test的手册页指出的,test命令运算表达式参数的值,如果表达式的值是True,就返回零(True)退出值。
As stated in the definition, test returns a zero exit value if the expression value was True or a non-zero exit value (that is, 1).
根据定义,如果表达式值是True,那么test返回零退出值,否则返回非零退出值(即1)。
If stop is true, then iteration will exit immediately.
如果stop为true,则迭代将立即退出。
应用推荐