about summary refs log tree commit diff
path: root/Test/D02glob.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-10-27 11:54:19 +0000
committerPeter Stephenson <pws@zsh.org>2015-10-27 11:54:19 +0000
commitb498bd7ce5b8f126f420f8f9fd4946912f8334da (patch)
treed85eca8c5af3da0279f6e661e1534664603911e0 /Test/D02glob.ztst
parent63fd71f171e9d282985ba24e5f3ee2507bce6f47 (diff)
downloadzsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.gz
zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.xz
zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.zip
36982: Fix bug with (#cN) patterns and remove redundant description.
We need to restore the current count of matches when returning to
match at the point where we previously matched.
Diffstat (limited to 'Test/D02glob.ztst')
-rw-r--r--Test/D02glob.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst
index 3e2095a0c..f944a4fbd 100644
--- a/Test/D02glob.ztst
+++ b/Test/D02glob.ztst
@@ -574,3 +574,11 @@
 0:Optimisation to squeeze multiple *'s used as ordinary glob wildcards.
 >glob.tmp/ra=1.0_et=3.5
 >glob.tmp/ra=1.0_et=3.5
+
+  [[ 1_2_ = (*_)(#c1) ]] && print 1 OK  # because * matches 1_2
+  [[ 1_2_ = (*_)(#c2) ]] && print 2 OK
+  [[ 1_2_ = (*_)(#c3) ]] || print 3 OK
+0:Some more complicated backtracking with match counts.
+>1 OK
+>2 OK
+>3 OK