zsh-workers
 help / color / mirror / code / Atom feed
* mult_ios with "exec"
@ 2015-01-30  9:59 Stephane Chazelas
  0 siblings, 0 replies; only message in thread
From: Stephane Chazelas @ 2015-01-30  9:59 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-30 10:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-30  9:59 mult_ios with "exec" Stephane Chazelas

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).