Chr*_*own 22
除了可能在特定程序的上下文中之外,以代码 99 退出没有意义。
无论哪种方式,都exit使用某个退出代码退出 shell,在本例中为 99。您可以在help exit以下位置找到更多信息:
exit: exit [n]
Exit the shell.
Exits the shell with a status of N. If N is omitted, the exit status
is that of the last command executed.
Run Code Online (Sandbox Code Playgroud)
cuo*_*glm 13
除了@Chris Down,还有一些为shell保留的返回码,它们有特殊的含义:
RETVAL Meaning
1 General errors
2 Misusage
127 Command not found
Run Code Online (Sandbox Code Playgroud)
您可以参考此了解更多详情。
| 归档时间: |
|
| 查看次数: |
23311 次 |
| 最近记录: |