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

Bugfix for hzoli10



The bug:

% foo=(a b c)
% echo $foo[$$]
zsh: oops. In parsestr

The fix is here.

Zoltan

--- 1.13	1995/07/06 12:28:04
+++ Src/lex.c	1995/07/19 23:26:32
@@ -969,8 +969,11 @@
 		add(Qstring);
 		c = Inbrace;
 		bct++;
-	    } else {
+	    } else if (c == '$')
+		add(Qstring);
+	    else {
 		hungetc(c);
+		lexstop = 0;
 		c = Qstring;
 	    }
 	    break;



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