arith-assign-in-varexp.tests 153 B

12345678
  1. exec 2>&1
  2. a='b=10'
  3. b=3
  4. # The variables should evaluate left-to-right,
  5. # thus b is set to 10 _before_ addition
  6. echo 20:$((a + b))
  7. echo "a=$a"
  8. echo "b=$b"