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

PATCH: =~ broken



When I made infix tests use C: as the feature type I forgot to change
the code that loads the appropriate form for the new =~ operator.

Index: Src/cond.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/cond.c,v
retrieving revision 1.12
diff -u -r1.12 cond.c
--- Src/cond.c	6 Jul 2007 21:52:39 -0000	1.12
+++ Src/cond.c	24 Jul 2007 09:32:20 -0000
@@ -96,7 +96,7 @@
 	{
 	    char *modname = isset(REMATCHPCRE) ? "zsh/pcre" : "zsh/regex";
 	    sprintf(overridename = overridebuf, "-%s-match", modname+4);
-	    (void)ensurefeature(modname, "c:", overridename+1);
+	    (void)ensurefeature(modname, "C:", overridename+1);
 	    ctype = COND_MODI;
 	}
 	/*FALLTHROUGH*/

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


.



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