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

Re: PATCH: 3.1.5++/3.0.6 Re: Parameter substitution bug



On Apr 30, 10:14am, Peter Stephenson wrote:
} Subject: PATCH: 3.1.5++/3.0.6 Re: Parameter substitution bug
}
} This should apply to 3.0.6 as well.

It didn't, because 3.0.x doesn't handle '[' and ']' the same way.  Is
the following a correct patch, or is more extensive surgery required?

Index: Src/glob.c
===================================================================
--- glob.c	1999/04/28 05:21:34	1.1.1.5.2.3
+++ glob.c	1999/04/30 09:56:42
@@ -2203,16 +2203,14 @@
 	    *t = Inang;
 	    *s = Outang;
 	    break;
-	case '^':
-	case '#':
-	case '~':
-	    if (unset(EXTENDEDGLOB))
-		break;
 	case '(':
 	case '|':
 	case ')':
 	    if (isset(SHGLOB))
 		break;
+	case '^':
+	case '#':
+	case '~':
 	case '*':
 	case '?':
 	    for (t = ztokens; *t; t++)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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