From: Stephane Chazelas <stephane.chazelas@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: mult_ios with "exec"
Date: Fri, 30 Jan 2015 09:59:19 +0000 [thread overview]
Message-ID: <20150130095918.GA5545@chaz.gmail.com> (raw)
zsh -c 'exec 3> a 3> b; echo never reached'
That command hangs.
strace shows zsh stuck on:
rt_sigsuspend([INT])
Same with >>, not with < or <> (though I suppose mult_ios
doesn't apply to <> or is equivalent to < there).
Note:
$ zsh -c 'eval exec 3> a 3> b; echo test >&3'
zsh:1: 3: bad file descriptor
(same with other shells (except the Bourne shell)).
zsh -c 'exec 3> >(tee a > b); echo reached'
is OK.
--
Stephane
reply other threads:[~2015-01-30 10:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20150130095918.GA5545@chaz.gmail.com \
--to=stephane.chazelas@gmail.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).