about summary refs log tree commit diff
path: root/Src/pattern.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2013-03-19 15:05:35 +0000
committerBart Schaefer <barts@users.sourceforge.net>2013-03-19 15:05:35 +0000
commit0c226a628297057e2ef5a8e06755e1c37b260304 (patch)
treef793c9142bc5e269ee8ee3d54731137920718913 /Src/pattern.c
parent146374a2af8cbc7674374b44ef6c963ee008e8a2 (diff)
downloadzsh-0c226a628297057e2ef5a8e06755e1c37b260304.tar.gz
zsh-0c226a628297057e2ef5a8e06755e1c37b260304.tar.xz
zsh-0c226a628297057e2ef5a8e06755e1c37b260304.zip
31158: following a wildcard with a repetition produces a bad pattern error
Diffstat (limited to 'Src/pattern.c')
-rw-r--r--Src/pattern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index 53ada0f8d..3b6edb850 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -1474,7 +1474,7 @@ patcomppiece(int *flagp)
     }
 
     /* too much at once doesn't currently work */
-    if (kshchar && pound)
+    if (kshchar && (pound || count))
 	return 0;
 
     if (kshchar == '*') {