summaryrefslogtreecommitdiff
path: root/Src/parse.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-06-28 17:47:02 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-06-28 17:47:02 +0100
commit93e5234532eb14acbb90c7502f2728589f375277 (patch)
tree22ebe6da6b7106903d5d54598203c51bdb2bf5da /Src/parse.c
parent811027a22a806f753537abee1575da8714d3fa0a (diff)
downloadzsh-93e5234532eb14acbb90c7502f2728589f375277.tar.gz
zsh-93e5234532eb14acbb90c7502f2728589f375277.zip
35643: Redirections after typeset assignments were broken.
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/parse.c b/Src/parse.c
index 477f8a0ab..09567fde2 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;