summary refs log tree commit diff
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
parent811027a22a806f753537abee1575da8714d3fa0a (diff)
downloadzsh-93e5234532eb14acbb90c7502f2728589f375277.tar.gz
zsh-93e5234532eb14acbb90c7502f2728589f375277.tar.xz
zsh-93e5234532eb14acbb90c7502f2728589f375277.zip
35643: Redirections after typeset assignments were broken.
-rw-r--r--ChangeLog5
-rw-r--r--Src/parse.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 99e7ccca6..c70c0de9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-28  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 35643: Src/parse.c: redirections after typeset assignments
+	were broken.
+
 2015-06-27  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 35642: Src/context.c: signal queueing in zcontext_save_partial()
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;