Files
android_external_bash/tests/arith8.sub
2019-01-07 09:27:52 -05:00

38 lines
373 B
Plaintext

# problems with evaluation of wrong terms in conditional expressions through
# bash-4.4
a=0 x="a=1"
((0?x:0))
echo $a
unset a x
a=0 x="a=1"
((1?0:x))
echo $a
unset a x
a=0 x="a=1"
((0?(x):0))
echo $a
unset a x
a=0 x="a=1"
((0?$x:0))
echo $a
unset a x
a=0 x="a=1"
((0&&x))
echo $a
unset a x
a=0 x="a=1"
((1||x))
echo $a
unset a x
a=0
((0?arr[a=1]:0))
echo $a
unset a