busybox/shell/ash_test/ash-arith/arith-ternary3.tests

5 lines
117 B
Plaintext
Executable File

exec 2>&1
# "EXPR ?..." should check _evaluated_ EXPR,
# not its last value
echo 42:$((1 < 1 ? -1 : 1 > 1 ? 1 : 42))