Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: pws-21: Re: globbing flags and EXTENDED_GLOB



Clint Adams wrote:
> Globbing flags work regardless of whether EXTENDED_GLOB is set.
> Is this an error in zsh behavior or an error in documentation?

That's a bug. Thanks.  `#' shouldn't be an active metacharacter at all
without extendedglob.

--- Src/glob.c.eg	Mon Jun 14 09:17:14 1999
+++ Src/glob.c	Mon Jun 14 09:22:10 1999
@@ -744,7 +744,7 @@
 		pptr++;
 	}
 
-	if (*pptr == Inpar && pptr[1] == Pound) {
+	if (*pptr == Inpar && pptr[1] == Pound && isset(EXTENDEDGLOB)) {
 	    /* Found some globbing flags */
 	    char *eptr = pptr;
 	    if (kshfunc != KF_NONE)

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author