From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32588 invoked from network); 8 Jun 2020 19:55:54 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 8 Jun 2020 19:55:54 -0000 Received: (qmail 18683 invoked by alias); 8 Jun 2020 19:55:42 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24911 Received: (qmail 26066 invoked by uid 1010); 8 Jun 2020 19:55:42 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-8.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25835. spamassassin: 3.4.4. Clear:RC:0(80.0.253.72):SA:0(-2.0/5.0):. Processed in 2.806838 secs); 08 Jun 2020 19:55:42 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _smtprelay.virginmedia.com designates 80.0.253.72 as permitted sender) X-Originating-IP: [86.16.88.158] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=bdpFrtHB c=1 sm=1 tr=0 a=MiHCjVqLJ44lE3bxSlffFQ==:117 a=MiHCjVqLJ44lE3bxSlffFQ==:17 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=1U9jI80u1Bonz-ck4tcA:9 a=QEXdDO2ut3YA:10 Message-ID: <80d62d9fbcbca4d8ce840381033f5a4c2f3917c1.camel@ntlworld.com> Subject: Re: subprocess From: Peter Stephenson To: zsh-users@zsh.org Date: Mon, 08 Jun 2020 20:55:00 +0100 In-Reply-To: <864555580040248526b2b7fc6fd036a6ac0e9c05.camel@ntlworld.com> References: <20200606010018.5d9c4a33@tarpaulin.shahaf.local2> <864555580040248526b2b7fc6fd036a6ac0e9c05.camel@ntlworld.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfIhYIgjTpb94qdG64IkRHtz334NRyoiprHpbdPwizrdSJs4/FX+IM7H6dZlaX9fC5vQWZDsygCCZpLXavqXPjuQsa89iXQYGjJAM+rwUoVkTabKPrpnP wH4bxEZHfTGuQn0O0oSQdmFCSlrJjBuxXKWlqft9Qhn6GUWrFTkqN/Kb On Sat, 2020-06-06 at 20:53 +0100, Peter Stephenson wrote: > On Sat, 2020-06-06 at 11:19 -0700, Bart Schaefer wrote: > > On Fri, Jun 5, 2020 at 6:01 PM Daniel Shahaf wrote: > > > > On 6/5/20, Pier Paolo Grassi wrote: > > > > > efe() cat $1 > > > > > efe <(seq 1 10) | wc -l > > > > > cat: /proc/self/fd/13: No such file or directory > > > > A named function on the left side of a pipeline becomes its own "job", > > where all descriptors above 10 are closed. > > Itʼs this call here. > > How ahout simply reordering so we tidy up after the function is called? > That fixes the problem, hard to see how that can cause a leak...? I've taken the silence for lack of controversy rather than stupefaction and submitted this. (For workers: I will assume the same for the CLOBBER_EMPTY change tomorrow. I already have a reply from Daniel.) pws