From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: "var=value exec > file" ignores the assignment?
Date: Wed, 15 Apr 2015 21:27:59 +0100 [thread overview]
Message-ID: <20150415212759.26c17961@ntlworld.com> (raw)
In-Reply-To: <20150415205218.0483a1ec@ntlworld.com>
On Wed, 15 Apr 2015 20:52:18 +0100
Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> This (based on the previous patch) might be good enough. It could
> probably do with a couple of tests.
Let me know if you've heard this one... That's not what I meant. You
know what I meant.
pws
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index 13f1f7c..602341d 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -538,3 +538,20 @@
print $functions[noredirfn]
0:Output from $functions[] for definition with no redirection
> print This rather boring function has no redirection.
+
+ (x=43
+ x=$(print This should appear, really >&2; print Not used) exec >test.log
+ print x=$x)
+ cat test.log
+0:Assignment with exec used for redirection: no POSIX_BUILTINS
+>x=43
+?This should appear, really
+
+ (setopt POSIX_BUILTINS
+ x=45
+ x=$(print This should appear, too >&2; print And this) exec >test.log
+ print x=$x)
+ cat test.log
+0:Assignment with exec used for redirection: POSIX_BUILTINS
+>x=And this
+?This should appear, too
prev parent reply other threads:[~2015-04-15 20:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-07 15:51 Jun T.
2015-04-08 17:13 ` Bart Schaefer
2015-04-09 16:13 ` Jun T.
2015-04-15 19:52 ` Peter Stephenson
2015-04-15 20:27 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150415212759.26c17961@ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).