diff options
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-quoting/negative_arith.right | 2 | ||||
-rwxr-xr-x | shell/ash_test/ash-quoting/negative_arith.tests | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/shell/ash_test/ash-quoting/negative_arith.right b/shell/ash_test/ash-quoting/negative_arith.right new file mode 100644 index 000000000..e7e51eee7 --- /dev/null +++ b/shell/ash_test/ash-quoting/negative_arith.right | |||
@@ -0,0 +1,2 @@ | |||
1 | tempfile0.tmp tempfile9.tmp | ||
2 | tempfile0.tmp tempfile1.tmp tempfile9.tmp | ||
diff --git a/shell/ash_test/ash-quoting/negative_arith.tests b/shell/ash_test/ash-quoting/negative_arith.tests new file mode 100755 index 000000000..8e47ca111 --- /dev/null +++ b/shell/ash_test/ash-quoting/negative_arith.tests | |||
@@ -0,0 +1,8 @@ | |||
1 | >tempfile0.tmp | ||
2 | >tempfile1.tmp | ||
3 | >tempfile9.tmp | ||
4 | # The [...] is interpreted as: "any of the chars 0, -, and 9" | ||
5 | echo tempfile[0"$((-9))"].tmp | ||
6 | # The [...] is [0-9], interpreted as: "any digit" | ||
7 | echo tempfile[0$((-9))].tmp | ||
8 | rm tempfile?.tmp | ||