about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-07-27 21:51:32 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-07-27 21:51:32 +0000
commita81e5a609e6d73a83c5a55a3f64f760c6fb45b92 (patch)
tree33ddedca1bc49c88067c11f6f20a740f04aeb240 /Test
parent60a05cf85aae737070f27b0e3edf36c840d2b17d (diff)
downloadzsh-a81e5a609e6d73a83c5a55a3f64f760c6fb45b92.tar.gz
zsh-a81e5a609e6d73a83c5a55a3f64f760c6fb45b92.tar.xz
zsh-a81e5a609e6d73a83c5a55a3f64f760c6fb45b92.zip
add (#cN,M) globbing flag
Diffstat (limited to 'Test')
-rw-r--r--Test/D02glob.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst
index 7c76414f0..59fc92d1c 100644
--- a/Test/D02glob.ztst
+++ b/Test/D02glob.ztst
@@ -177,6 +177,16 @@
 >1:  [[ path/testy = *((#s)|/)test((#e)|/)* ]]
 >1:  [[ path/testy/ohyes = *((#s)|/)test((#e)|/)* ]]
 >1:  [[ path/atest/ohyes = *((#s)|/)test((#e)|/)* ]]
+>0:  [[ XabcdabcY = X(ab|c|d)(#c5)Y ]]
+>0:  [[ XabcdabcY = X(ab|c|d)(#c1,5)Y ]]
+>0:  [[ XabcdabcY = X(ab|c|d)(#c5,8)Y ]]
+>0:  [[ XabcdabcY = X(ab|c|d)(#c4,)Y ]]
+>1:  [[ XabcdabcY = X(ab|c|d)(#c6,)Y ]]
+>1:  [[ XabcdabcY = X(ab|c|d)(#c1,4)Y ]]
+>0:  [[ ZX = Z(|)(#c1)X ]]
+>0:  [[ froofroo = (fro(#c2))(#c2) ]]
+>1:  [[ froofroofroo = (fro(#c2))(#c2) ]]
+>1:  [[ froofro = (fro(#c2))(#c2) ]]
 >0 tests failed.
 
   globtest globtests.ksh
@@ -357,3 +367,7 @@
 >  [[:IFSSPACE:]] yes
 >/ [[:WORD:]] no
 >/ [[:WORD:]] yes
+
+ [[ foo = (#c0)foo ]]
+1:Misplaced (#c...) flag
+?(eval):1: bad pattern: (#c0)foo