From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 932887b5 for ; Tue, 2 Jul 2019 18:09:41 +0000 (UTC) Received: (qmail 16199 invoked by alias); 2 Jul 2019 18:09:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44487 Received: (qmail 13514 invoked by uid 1010); 2 Jul 2019 18:09:34 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25496. spamassassin: 3.4.2. Clear:RC:0(209.85.221.52):SA:0(-2.0/5.0):. Processed in 1.010622 secs); 02 Jul 2019 18:09:34 -0000 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.52 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TfH0B/efdEOtmHZ60PGoqhPSUcpUscbbwmly2EcjYWM=; b=KV1LX0LgrUlRxpT9UB8YpCmWszu1ccqbokDEFQJiXOvBNyWU2LkwTx1Q6cocA8Od78 RCQ4z0uBiJa1SNQEJ7tDdnmhEFNeEcccCz3PbUdJRMiaPlJChesa8Gk8nfELIijrlf+5 m/slI2KWT17MUoL17RIzVTlY1qSSxY6vXW/k/8QGmy6dGhblTYcv/uolW7dIMiV1ZNnH lCRrui51Xe6dVAK44gSwvdZFPPebFPiGUBQ8qn5vHN/8VBna03i1g0lMfs2P20czs2Y7 fTBkPzdkYQZdjveYErWpS9FNLU0f7T/n9LZFHwdES6ZXruJrfmkeTGKoC3beqYtEzyL8 0zhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=TfH0B/efdEOtmHZ60PGoqhPSUcpUscbbwmly2EcjYWM=; b=ltyloL9+NXFCRUDQO4JS+5XnkFHxI1Gph/yCXTui2vhySwacibvw6lhxzO4Ievlnk2 ObNuUi64lKqn8q7I8Wa4Qq+eVDv21liDUlYoUiJCfkkqS2ZhtXN2juk1q9lfPoIdl09y DUEeZQoI4SNn4zI3kOwLZdB74gYUlqa3bdo5+En3gK+NI8OWPeUQNXdh82UfwrkDbAbK eXmG7wOaC0GR/g8F+kxbY+wDxsxXlx2GZH0P9vNxOCW/+Qpf1y7sihjbp2vHrO+Rnxiu c3XiOzqWhzJGRz9Lk2Ph+1be/FYNKXluqJUWK6Rz/xYHiLRJ/t0F6IVYxU47jOad5s8i OjYg== X-Gm-Message-State: APjAAAUpPwC5geCx8mbwI+oIEKnoCHU8oCrcKCGvDfGI0tdqn4zZ6KZ0 puqGXDZGv+UkZI67Fz1CjH27OmWV X-Google-Smtp-Source: APXvYqyg+k1UcvXVNgRlSEDiGPKEb/0+WpO4rPk8IrGZaIl4Z71fK3AUdjDXBQoy0m+KrZjoLxyrxg== X-Received: by 2002:adf:dd89:: with SMTP id x9mr19790039wrl.7.1562090938386; Tue, 02 Jul 2019 11:08:58 -0700 (PDT) Date: Tue, 2 Jul 2019 19:08:55 +0100 From: Stephane Chazelas To: zsh-workers@zsh.org Subject: Re: <(...), >(...) and fds above 9 Message-ID: <20190702180855.e7kdk6uwfky4wxzd@chaz.gmail.com> Mail-Followup-To: zsh-workers@zsh.org References: <20190701100001.hbegs7zyu2auckhf@chaz.gmail.com> <1561975733.6006.2.camel@samsung.com> <1561994908.6006.19.camel@samsung.com> <20190701162202.5o3cxahc75e2hucz@chaz.gmail.com> <1561999973.6006.21.camel@samsung.com> <1562057976.5684.3.camel@samsung.com> <20190702122018.mytrtge3rq42nouf@chaz.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 2019-07-02 18:43:16 +0200, Sebastian Gniazdowski: > On Tue, 2 Jul 2019 at 14:21, Stephane Chazelas > wrote: > > Neither ksh93 nor bash close the fds opened with > > { cat <(ls -l /proc/self/fd; } {fd}< file > > (that syntax doesn't work in zsh as already reported). > > Can I ask you what do you mean by closing the descriptor? I recently > often do exec {FD}< <(some code); zle -F $FD handler and it is > working, which to me appears as the FD not being closed? The problem is not about fds redirected to/from process substitutions but fds (opened earlier) used *inside* process substitution. exec {fd}< some-file cat <(cat <&$fd) -- Stephane