about summary refs log tree commit diff
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
parenta2365a9c6aedaaf7354949e351dfeb5d1bc21b92 (diff)
downloadzsh-ba2ea727531305043ae64be5ad591e30773a7908.tar.gz
zsh-ba2ea727531305043ae64be5ad591e30773a7908.tar.xz
zsh-ba2ea727531305043ae64be5ad591e30773a7908.zip
10971: **/... always globbed dots
-rw-r--r--ChangeLog5
-rw-r--r--Src/pattern.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e14bf2215..a0d6a1d12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-27  Peter Stephenson  <pws@cambridgesiliconradio.com>
+
+	* 10971: Src/pattern.c: noglobdots didn't work with the PAT_ANY
+	flag, which meant that **/ always globbed dots.
+
 2000-04-27  Sven Wischnowsky  <wischnow@informatik.hu-berlin.de>
 
 	* 10967: Completion/Base/_arguments: fix for automatic
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 */