summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-arith/arith-assign-in-varexp.tests
blob: 920aaa7791ce2dd45ea59748038e792213dd5238 (plain)
1
2
3
4
5
6
7
8
exec 2>&1
a='b=10'
b=3
# The variables should evaluate left-to-right,
# thus b is set to 10 _before_ addition
echo 20:$((a + b))
echo "a=$a"
echo "b=$b"