arith-assign-in-varexp1.tests 246 B

123456789
  1. exec 2>&1
  2. a='x=1'
  3. b='x=2'
  4. c='x=3'
  5. # The variables should evaluate immediately when they encountered,
  6. # not when they go into an operation. Here, order of evaluation
  7. # of names to numbers should be a,b,c - not b,c,a:
  8. echo 7:$((a+b*c))
  9. echo "x=$x"