From 7389a42d173d7d446e147f92174ddfd5609d0c0f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 30 Mar 2008 22:14:22 +0000 Subject: 24708: Misc/globtests, Src/pattern.c, Test/D02glob.ztst: fix backtracking problem in (#c) pattern --- Misc/globtests | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Misc') diff --git a/Misc/globtests b/Misc/globtests index 65fdbdca2..482c962c3 100755 --- a/Misc/globtests +++ b/Misc/globtests @@ -192,5 +192,20 @@ t ZX Z(|)(#c1)X t froofroo (fro(#c2))(#c2) f froofroofroo (fro(#c2))(#c2) f froofro (fro(#c2))(#c2) +t ax ?(#c1,2)x +t ax ?(#c1,)x +t ax ?(#c0,1)x +f ax ?(#c0,0)x +f ax ?(#c2,)x +t aa a(#c1,2)a +t aa a(#c1,)a +t aa a(#c0,1)a +f aa a(#c0,0)a +f aa a(#c2,)a +t test.zsh *.?(#c1)sh +t test.bash *.?(#c2)sh +t test.bash *.?(#c1,2)sh +t test.bash *.?(#c1,)sh +t test.zsh *.?(#c1,)sh EOT print "$failed tests failed." -- cgit 1.4.1