Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is this a bug or I'm completely lost?
- X-seq: zsh-workers 20546
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Is this a bug or I'm completely lost?
- Date: Thu, 4 Nov 2004 20:20:03 -0800 (PST)
- In-reply-to: <20041104182928.GD24522@DervishD>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20041104115359.GA23778@DervishD> <Pine.LNX.4.61.0411040841090.5131@xxxxxxxxxxxxxxxxxx> <13119.1099592066@xxxxxxx> <20041104182928.GD24522@DervishD>
- Reply-to: zsh-workers@xxxxxxxxxx
On Thu, 4 Nov 2004, DervishD wrote:
> Currently you have 'if no matches in the first array, don't even
> try the second' behaviour.
In that case I've misread both the code and your original description of
the problem, and I'm much more convinced that it's a bug.
Try this.
--- compcore.c.~1.67.~ 2004-06-07 07:55:38.000000000 -0700
+++ compcore.c 2004-11-04 20:17:16.000000000 -0800
@@ -2082,7 +2082,7 @@
compignored++;
if (dparr && !*++dparr)
dparr = NULL;
- continue;
+ goto next_array;
}
}
if (!(dat->aflags & CAF_MATCH)) {
@@ -2100,7 +2100,7 @@
&isexact))) {
if (dparr && !*++dparr)
dparr = NULL;
- continue;
+ goto next_array;
}
if (doadd) {
Brinfo bp;
@@ -2132,6 +2132,7 @@
}
free_cline(lc);
}
+ next_array:
if ((dat->aflags & CAF_ARRAYS) && !argv[1]) {
Heap oldheap2;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author