summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-arith/arith-ternary_nested3.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash_test/ash-arith/arith-ternary_nested3.tests')
-rwxr-xr-xshell/ash_test/ash-arith/arith-ternary_nested3.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ash_test/ash-arith/arith-ternary_nested3.tests b/shell/ash_test/ash-arith/arith-ternary_nested3.tests
new file mode 100755
index 0000000..b69dcc6
--- /dev/null
+++ b/shell/ash_test/ash-arith/arith-ternary_nested3.tests
@@ -0,0 +1,6 @@
+exec 2>&1
+x='@'
+a=2
+# After processing nested ?:, outermost ?: should still rememeber to NOT evaluate a*=2
+echo 42:$((1?0?41:42:(a*=2)))
+echo "a=2:$a"