mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
10 lines
177 B
Bash
10 lines
177 B
Bash
#!/usr/bin/env bash
|
||
|
||
#退出状态码,最大为255,超过则进行模运算
|
||
#testing the exit status
|
||
var1=10
|
||
var2=20
|
||
var3=$[ $var1 + $var2 ]
|
||
echo The answer is $var3
|
||
exit 5
|