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

Re: If someone wants to try...



Alexandre Duret-Lutz wrote:

> With the three patches applied I can reproduce the following segfault.
> The idea is to make a completion (here on filenames, after cat)
> just before completing for $functions (it look like it will
> hang only when completing the varname `$functions').

Missing initialisation for a tstack field in two places.

And maybe we should try to avoid building values for arrays and hashes 
when completing their names (it's autoparamslash if I'm not completely 
mistaken). No patch for this yet.

Bye
 Sven

--- ../z.old/Src/text.c	Wed Jan 19 10:07:27 2000
+++ Src/text.c	Wed Jan 19 16:43:51 2000
@@ -615,7 +615,8 @@
 			}
 			break;
 		    case COND_AND:
-			tpush(code, 1);
+			n = tpush(code, 1);
+			n->u._cond.par = 0;
 			code = *state->pc++;
 			if (WC_COND_TYPE(code) == COND_OR) {
 			    taddstr("( ");
@@ -624,7 +625,8 @@
 			}
 			break;
 		    case COND_OR:
-			tpush(code, 1);
+			n = tpush(code, 1);
+			n->u._cond.par = 0;
 			code = *state->pc++;
 			if (WC_COND_TYPE(code) == COND_AND) {
 			    taddstr("( ");

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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