From b13c451ff37bb0f6a5cdfcfa579c10ed6cfa468f Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 2 Jun 2000 10:14:42 +0000 Subject: Added some testing of glob-array indexing. --- Test/14array.ztst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Test') 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 . -- cgit 1.4.1