Welcome to mirror list, hosted at ThFree Co, Russian Federation.

arith-assign-in-varexp.tests « hush-arith « hush_test « shell - git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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"