相关疑难解决方法(0)

什么$?在shell脚本中$ 0 $ 1 $ 2是什么意思?

我经常遇到$? $0 $1 $2 etc....shell脚本,我知道的是$?返回最后一个命令的退出状态

echo "this will return 0"
echo $?
Run Code Online (Sandbox Code Playgroud)

但其他人做了什么?他们叫什么,还有更多吗?也许就像$ 3 $ 4 $ 5 ...

bash shell ash

71
推荐指数
2
解决办法
23万
查看次数

标签 统计

ash ×1

bash ×1

shell ×1