Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: <(...), >(...) and fds above 9
- X-seq: zsh-workers 44472
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: <(...), >(...) and fds above 9
- Date: Mon, 1 Jul 2019 07:39:46 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=g03Y6WaKGC1Ae2J2GLMBnid4Y2lzt2B71rnQwNMfcfE=; b=t12p0ye+TD99337jLGdmmHxxA6aDJb3gCS8dSxt9P7Z3ZeNTSPmhGDKI1CHrVU8ON/ HjuSOLduyI6jLLSCv+8JgjgS3JQlipFhamgncC/qNsNV5aHqNS9gHCMI6cRVnwE+Z23P r4tAJo507eTY79Kdu44vROKw2nx31BgKWj1kduod5Fg13Pjqk7XT8XN8Elws+QZepSNw 18pcSx7aRn28LMGA/i2KYA8wWmOm3R8ehm3BFsbtrsAKgba4y8aNZz3sD2dnqWMYFQ3n ZWuGQln0dBI0u2TdcgZRnIkMJ+1zm8bJKcWZ8CFfmJHRcdCX1OC4JaFLTkPUBLeuw7PL qvzA==
- In-reply-to: <1561975733.6006.2.camel@samsung.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20190701100058epcas2p25e5f8dbd14d048fe2be1d831f3cf60ab@epcas2p2.samsung.com> <20190701100001.hbegs7zyu2auckhf@chaz.gmail.com> <1561975733.6006.2.camel@samsung.com>
On Mon, Jul 1, 2019 at 3:09 AM Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
>
> On Mon, 2019-07-01 at 11:00 +0100, Stephane Chazelas wrote:
> >
> > It seems fds above 9 are closed in those forms of process substitutions.
> >
> > It doesn't happen for the =(...) form of process substitution.
> >
> > Is that intentional?
>
> I'd be surprised if there was any deliberate intention to make these different,
> but there may be some detail I can't think of.
<(...) does
entersubsh(ESUB_ASYNC|ESUB_PGRP, NULL);
whereas =(...) does
entersubsh(ESUB_PGRP|ESUB_NOMONITOR, NULL);
The fds above 9 are only closed for ASYNC, I think.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author