# 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
