summaryrefslogtreecommitdiff
path: root/tests/arith.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arith.tests')
-rw-r--r--tests/arith.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/arith.tests b/tests/arith.tests
index 33622e7..9e82bb1 100644
--- a/tests/arith.tests
+++ b/tests/arith.tests
@@ -84,6 +84,12 @@ echo $(( 4<(2+3) ? 1 : 32))
echo $(( (2+2)<(2+3) ? 1 : 32))
echo $(( (2+2)>(2+3) ? 1 : 32))
+# bug in bash versions through bash-3.2
+S=105
+W=$((S>99?4:S>9?3:S>0?2:0))
+echo $W
+unset W S
+
# check that the unevaluated part of the ternary operator does not do
# evaluation or assignment
x=i+=2