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