mirror of
https://git.busybox.net/busybox
synced 2025-05-13 14:14:01 +02:00
This fixes ash-arith-arith-ternary1/2.tests function old new delta evaluate_string 1271 1432 +161 arith_apply 968 1000 +32 arith 22 36 +14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 207/0) Total: 207 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
5 lines
98 B
Text
Executable file
5 lines
98 B
Text
Executable file
exec 2>&1
|
|
a=0
|
|
# The not-taken branch should not evaluate
|
|
echo 42:$((1 ? 42 : (a+=2)))
|
|
echo "a=$a"
|