summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-arith/arith-ternary1.tests
blob: 3532ce54df9ac58612810e0e4a2f71866782645a (plain)
1
2
3
4
5
exec 2>&1
a=0
# The not-taken branch should not evaluate
echo 42:$((1 ? 42 : (a+=2)))
echo "a=$a"