aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-quoting/negative_arith.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-quoting/negative_arith.tests')
-rwxr-xr-xshell/hush_test/hush-quoting/negative_arith.tests8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/hush_test/hush-quoting/negative_arith.tests b/shell/hush_test/hush-quoting/negative_arith.tests
new file mode 100755
index 000000000..8e47ca111
--- /dev/null
+++ b/shell/hush_test/hush-quoting/negative_arith.tests
@@ -0,0 +1,8 @@
+>tempfile0.tmp
+>tempfile1.tmp
+>tempfile9.tmp
+# The [...] is interpreted as: "any of the chars 0, -, and 9"
+echo tempfile[0"$((-9))"].tmp
+# The [...] is [0-9], interpreted as: "any digit"
+echo tempfile[0$((-9))].tmp
+rm tempfile?.tmp