about summary refs log tree commit diff
path: root/Src/pattern.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-04-27 10:58:49 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-04-27 10:58:49 +0000
commitba2ea727531305043ae64be5ad591e30773a7908 (patch)
tree03ac25113e94205b38e6a4e28aab59a080c020fc /Src/pattern.c
parenta2365a9c6aedaaf7354949e351dfeb5d1bc21b92 (diff)
downloadzsh-ba2ea727531305043ae64be5ad591e30773a7908.tar.gz
zsh-ba2ea727531305043ae64be5ad591e30773a7908.tar.xz
zsh-ba2ea727531305043ae64be5ad591e30773a7908.zip
10971: **/... always globbed dots
Diffstat (limited to 'Src/pattern.c')
-rw-r--r--Src/pattern.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index eef88ac6e..d0241dd12 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -1339,6 +1339,8 @@ pattryrefs(Patprog prog, char *string, int *nump, int *begp, int *endp)
 	    ((prog->flags & PAT_NOANCH) ? 
 	     !strncmp(progstr, string, prog->patmlen)
 	     : !strcmp(progstr, string))) {
+	    if ((prog->flags & PAT_NOGLD) && *string == '.')
+		return 0;
 	    /* in case used for ${..#..} etc. */
 	    patinput = string + prog->patmlen;
 	    /* if matching files, must update globbing flags */