about summary refs log tree commit diff
path: root/Src/glob.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2013-11-18 08:24:54 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2013-11-18 08:24:54 -0800
commit12fb09c336f23fdd6539e66380a32c4a86f3527e (patch)
treed56919f4a376eab7a38105e47287a1f67de34fec /Src/glob.c
parentbd919f30aeb45828404899a1524b2028446860bd (diff)
downloadzsh-12fb09c336f23fdd6539e66380a32c4a86f3527e.tar.gz
zsh-12fb09c336f23fdd6539e66380a32c4a86f3527e.tar.xz
zsh-12fb09c336f23fdd6539e66380a32c4a86f3527e.zip
31995: Han Pingtian: glob qualifiers cannot follow an empty pattern, so a leading paren means grouping
Diffstat (limited to 'Src/glob.c')
-rw-r--r--Src/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/glob.c b/Src/glob.c
index e0d0cf68e..385b9e681 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -1171,7 +1171,7 @@ zglob(LinkList list, LinkNode np, int nountok)
 		break;
 	    }
 	}
-	if (*s != Inpar)
+	if (*s != Inpar || s == str)
 	    break;
 	if (isset(EXTENDEDGLOB) && !zpc_disables[ZPC_HASH] && s[1] == Pound) {
 	    if (s[2] == 'q') {