我经常遇到$? $0 $1 $2 etc....shell脚本,我知道的是$?返回最后一个命令的退出状态
$? $0 $1 $2 etc....
$?
echo "this will return 0" echo $?
但其他人做了什么?他们叫什么,还有更多吗?也许就像$ 3 $ 4 $ 5 ...
bash shell ash
ash ×1
bash ×1
shell ×1