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

Re: Is this a bug or I'm completely lost?



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