about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-03-30 22:14:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-03-30 22:14:22 +0000
commit7389a42d173d7d446e147f92174ddfd5609d0c0f (patch)
treec17ebc5cf8f5cbed0d1370781c9c8a21ac8fcf68 /Test
parentaf92f874e179bdfad66dea04532178fb82226ef9 (diff)
downloadzsh-7389a42d173d7d446e147f92174ddfd5609d0c0f.tar.gz
zsh-7389a42d173d7d446e147f92174ddfd5609d0c0f.tar.xz
zsh-7389a42d173d7d446e147f92174ddfd5609d0c0f.zip
24708: Misc/globtests, Src/pattern.c, Test/D02glob.ztst:
fix backtracking problem in (#c) pattern
Diffstat (limited to 'Test')
-rw-r--r--Test/D02glob.ztst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst
index 59fc92d1c..d5f654a71 100644
--- a/Test/D02glob.ztst
+++ b/Test/D02glob.ztst
@@ -187,6 +187,21 @@
 >0:  [[ froofroo = (fro(#c2))(#c2) ]]
 >1:  [[ froofroofroo = (fro(#c2))(#c2) ]]
 >1:  [[ froofro = (fro(#c2))(#c2) ]]
+>0:  [[ ax = ?(#c1,2)x ]]
+>0:  [[ ax = ?(#c1,)x ]]
+>0:  [[ ax = ?(#c0,1)x ]]
+>1:  [[ ax = ?(#c0,0)x ]]
+>1:  [[ ax = ?(#c2,)x ]]
+>0:  [[ aa = a(#c1,2)a ]]
+>0:  [[ aa = a(#c1,)a ]]
+>0:  [[ aa = a(#c0,1)a ]]
+>1:  [[ aa = a(#c0,0)a ]]
+>1:  [[ aa = a(#c2,)a ]]
+>0:  [[ test.zsh = *.?(#c1)sh ]]
+>0:  [[ test.bash = *.?(#c2)sh ]]
+>0:  [[ test.bash = *.?(#c1,2)sh ]]
+>0:  [[ test.bash = *.?(#c1,)sh ]]
+>0:  [[ test.zsh = *.?(#c1,)sh ]]
 >0 tests failed.
 
   globtest globtests.ksh