ex5.sh
来自「Shall高级编程」· Shell 代码 · 共 16 行
SH
16 行
#!/bin/bashecho helloecho $? # Exit status 0 returned because command executed successfully.lskdf # Unrecognized command.echo $? # Non-zero exit status returned because command failed to execute.echoexit 113 # Will return 113 to shell. # To verify this, type "echo $?" after script terminates.# By convention, an 'exit 0' indicates success,#+ while a non-zero exit value means an error or anomalous condition.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?