about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/14array.ztst20
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/14array.ztst b/Test/14array.ztst
index 1cdf53c2d..35976899c 100644
--- a/Test/14array.ztst
+++ b/Test/14array.ztst
@@ -3,6 +3,8 @@
 %prep
 
   foo=(a b c d e f g)
+  mkdir array.tmp
+  touch array.tmp/{1..9}
 
 %test
 
@@ -75,3 +77,21 @@
   unsetopt ksh_arrays
 0:Ksh array indexing (iii)
 >.b c d e f g.
+
+  cd array.tmp
+  echo . ?([3,5]) .
+  cd ..
+0:Glob array indexing
+>. 3 4 5 .
+
+  cd array.tmp
+  echo . ?([2,-2]) .
+  cd ..
+0:Glob array indexing (ii)
+>. 2 3 4 5 6 7 8 .
+
+  cd array.tmp
+  echo . ?([-6,-4]) .
+  cd ..
+0:Glob array indexing (iii)
+>. 4 5 6 .