echo $(( (2+2)<(2+3) ? 1 : 32))
echo $(( (2+2)>(2+3) ? 1 : 32))
+# bug in bash versions through bash-3.2
+S=105
+W=$((S>99?4:S>9?3:S>0?2:0))
+echo $W
+unset W S
+
# check that the unevaluated part of the ternary operator does not do
# evaluation or assignment
x=i+=2
echo $(( ++7 ))
echo $(( --7 ))
+${THIS_SH} ./arith1.sub
+${THIS_SH} ./arith2.sub
+
x=4
y=7
printf "%u\n" $n
echo $(( 16#$(printf "%x\n" $n) ))
echo $(( 16#$(printf "%X\n" $n) ))
+
+# causes longjmp botches through bash-2.05b
+a[b[c]d]=e