1
为什么a = 0;让a ++返回退出代码1?
尝试一下: $ a=0 $ let a++ $ echo $? 1 # Did the world just go mad? $ echo $a 1 # Yes, it did. $ let a++ $ echo $? 0 # We have normality. $ echo $a 2 与此相反: $ b=0 $ let b+=1 $ echo $? 0 …
16
bash
ksh
arithmetic