v0.7.6
Implemented short-circuit evaluation in arithmetic operation
As Bash does, this version does not evaluate the rightside of && or || when the result is fixed.
π£ B=0 ; echo $(( 0 || (B=2) )) ; echo $B
1
2 # B=2 is evaluated
π£ B=0 ; echo $(( 1 || (B=2) )) ; echo $B
1
0 # B=2 is not evaluated.
π£ B=0 ; echo $(( 0 && (B=2) )) ; echo $B
0
0
π£ B=0 ; echo $(( 1 && (B=2) )) ; echo $B
1
2