Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Associative array ordering and selective unset (Re: Example function)
- X-seq: zsh-workers 8321
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: Associative array ordering and selective unset (Re: Example function)
- Date: Mon, 18 Oct 1999 13:12:02 +0200 (MET DST)
- In-reply-to: Sven Wischnowsky's message of Mon, 18 Oct 1999 11:53:06 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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