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

Re: PATCH: Re: Associative array ordering and selective unset (Re: Example function)



I wrote:

> This does that. The patterns are only compiled on demand and the
> testing is quite simple, so even in the used-only-once-in-an-init-
> script-case it shouldn't make things slower.

Oh my... I thought I had tested that with xtrace.

Bye
 Sven

diff -u -r oldsrc/cond.c Src/cond.c
--- oldsrc/cond.c	Mon Oct 18 11:53:58 1999
+++ Src/cond.c	Mon Oct 18 12:47:46 1999
@@ -117,7 +117,8 @@
 	if (c->type < COND_MOD) {
 	    char *rt = (char *) right;
 	    if (c->type == COND_STREQ || c->type == COND_STRNEQ) {
-		rt = dupstring(rt);
+		rt = dupstring(c->right);
+		singsub(&rt);
 		untokenize(rt);
 	    }
 	    fprintf(stderr, " %s %s %s", (char *)left, condstr[c->type],

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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