arith-ternary1.tests 98 B

12345
  1. exec 2>&1
  2. a=0
  3. # The not-taken branch should not evaluate
  4. echo 42:$((1 ? 42 : (a+=2)))
  5. echo "a=$a"