From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: process substitution bug with set -e?
Date: Mon, 14 Oct 2013 17:28:54 +0100 [thread overview]
Message-ID: <20131014172854.70e2c3ce@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20131014150845.GB31070@ypig.lip.ens-lyon.fr>
On Mon, 14 Oct 2013 17:08:45 +0200
Vincent Lefevre <vincent@vinc17.net> wrote:
> I can see that it has the same behavior as, for instance:
>
> { echo foo; exit } >>(sleep 1; cat -n)
>
> Again, one may wonder whether the shell should exit immediately.
> Is this clearly documented somewhere?
These interactions between different features are definitely not clearly
documented. This formally quadratic problem --- it's not actually as bad
as (features)**2, of course --- is still fairly horrific in the case of
zsh.
I note that with a subshell, in
( echo foo ) >>(sleep 10; cat -n)
the shell waits but in
( echo foo; exit ) >>(sleep 10; cat -n)
it doesn't. So this must mean the logic for waiting is inside the
subshell. This surprised me. I don't know if this has implications for
what's going on in the case of { ... }.
pws
next prev parent reply other threads:[~2013-10-14 16:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 12:41 Vincent Lefevre
2013-10-14 13:48 ` Peter Stephenson
2013-10-14 15:08 ` Vincent Lefevre
2013-10-14 16:23 ` Bart Schaefer
2013-10-14 16:28 ` Peter Stephenson [this message]
2013-10-14 17:47 ` Bart Schaefer
2013-10-15 8:42 ` Peter Stephenson
2013-10-15 14:29 ` Bart Schaefer
2013-10-16 17:53 ` Peter Stephenson
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=20131014172854.70e2c3ce@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-users@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).