mirror of https://github.com/fengyuhetao/shell.git
10 lines
168 B
Bash
10 lines
168 B
Bash
|
#!/bin/bash
|
|||
|
#退出状态码,最大为255,超过则进行模运算
|
|||
|
#testing the exit status
|
|||
|
var1=10
|
|||
|
var2=20
|
|||
|
var3=$[ $var1 + $var2]
|
|||
|
echo The answer is $var3
|
|||
|
exit 5
|
|||
|
|