#Bash 的 exit 命令
exit [N]
功能
退出 shell。
类型
Bash 内置命令。
参数
N- shell 的返回值为N;如果省略此参数,则以最后一个命令的返回值作为 shell 的返回值
#示例
#!/bin/bash
# ...
exit 0
#推荐阅读
#手册
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.