Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange regression in zsh-git with redirecting output of 'readonly'
On Sun, 28 Jun 2015 00:19:19 +0200
Martijn Dekker <martijn@xxxxxxxx> wrote:
> There's a regression in current zsh git version: attempting to
> redirecting the output of a "readonly" with assignment argument (i.e. a
> potential error message) causes at least three kinds of different and
> unpredictable strange behaviour. But in all three cases, the command
> fails to work. In zsh 5.0.8 and earlier, all this works fine.
Does this fix it?
diff --git a/Src/parse.c b/Src/parse.c
index 477f8a0..09567fd 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -1868,6 +1868,8 @@ par_simple(int *cmplx, int nr)
*cmplx = c = 1;
nrediradd = par_redir(&r, NULL);
p += nrediradd;
+ if (ppost)
+ ppost += nrediradd;
sr += nrediradd;
} else if (tok == ENVSTRING) {
char *ptr, *name, *str;
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author