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 74d05ff6 for ; Mon, 1 Jul 2019 10:00:48 +0000 (UTC) Received: (qmail 8322 invoked by alias); 1 Jul 2019 10:00:39 -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: 44470 Received: (qmail 8764 invoked by uid 1010); 1 Jul 2019 10:00:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f49.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.49):SA:0(-2.0/5.0):. Processed in 1.781555 secs); 01 Jul 2019 10:00:39 -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.49 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:mime-version :content-disposition:user-agent; bh=DpNROObdMow80Y9p5o2gaKLlmBUQLNiRuV/ugchDTw8=; b=GD6akc+/ZTMiA203OmfRD+E1+bpJELE/jVQ/fEYcUA3IBIDnDLq+KJAGnCFqEiZIgm U1+/95635KW2bPUlMrb97GIfsuqxzywUk4EDjD6AQiEEUe/YWXwbC29cdAPviFm3ZtQ1 17epctWNlRjcjuViKj+UMDDusUz2ZhR7D0znL+UR1+pQdtEhsSQHXDt7v2vqukSgaiN4 tfk2bLmFi1AfxjTwa3GC3DUam8MNTbI1oaFUII7b8D+1VAgM4DlxvntHFEj+kMHPVQFx LNbcGNrl0I4pXISDg/9cqzy6DR6nYh6Ntt/jrInYm7OgIn5OioXSGgKPytkCSQ5zUL1v V/2A== 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 :mime-version:content-disposition:user-agent; bh=DpNROObdMow80Y9p5o2gaKLlmBUQLNiRuV/ugchDTw8=; b=fUyRAz28+CqESSkicXncmwkpHenTSjofH4iXMCbyR4CNB0jrCp9lsJyYPpNFz5hJpJ 19Fk+94oHk0feRshYAGPK4V5sp+VfRRAS/Du33C0J6fmPMP4k/LW8H1kw5BpD6G3Ls0D XuSVX3CQ5jQjuqlFuq+v/h0PI+JXXCP454e+1hJUubh+TzRNdAXnozgRnizzhv/Vdilq 4NVqKoXj0O8SkNDSW1WII//pRHChDjT+c074tflWNO61KJiP/UPvunVeG1OLzewGwasr dt8djJkWufoM8SQA5YCvZJPg5LXC6NGhVQ4/jm5419F3UNqhfsNDqStvCCBRRACXZeDJ a7Ag== X-Gm-Message-State: APjAAAUoFizDc8g049F205Ne89GvwllKpH8+uQRI3EYVTXjZi5jU5ydB 9wn60xbSEecHep4n9oFZxfi2achi X-Google-Smtp-Source: APXvYqwyaQh6Ii/aH8LFRO/1aKQsMitBaQYSNmojLiF3yOhQrxtr3iFsnH+RcofgPFWapaZr3gakVA== X-Received: by 2002:a5d:4841:: with SMTP id n1mr19427853wrs.320.1561975203463; Mon, 01 Jul 2019 03:00:03 -0700 (PDT) Date: Mon, 1 Jul 2019 11:00:01 +0100 From: Stephane Chazelas To: Zsh hackers list Subject: <(...), >(...) and fds above 9 Message-ID: <20190701100001.hbegs7zyu2auckhf@chaz.gmail.com> Mail-Followup-To: Zsh hackers list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20171215 /tmp$ zsh -c 'exec {fd}< a; zmodload zsh/system; sysopen -u fd2 /dev/fd/$fd; echo $fd $fd2; exec 7< a; ls -l /proc/self/fd; cat <(ls -l /proc/self/fd)' 12 13 total 0 lrwx------ 1 stephane stephane 64 Jul 1 10:52 0 -> /dev/pts/15 lrwx------ 1 stephane stephane 64 Jul 1 10:52 1 -> /dev/pts/15 lr-x------ 1 stephane stephane 64 Jul 1 10:52 12 -> /tmp/a lr-x------ 1 stephane stephane 64 Jul 1 10:52 13 -> /tmp/a lrwx------ 1 stephane stephane 64 Jul 1 10:52 2 -> /dev/pts/15 lr-x------ 1 stephane stephane 64 Jul 1 10:52 3 -> /proc/464/fd lr-x------ 1 stephane stephane 64 Jul 1 10:52 7 -> /tmp/a total 0 lrwx------ 1 stephane stephane 64 Jul 1 10:52 0 -> /dev/null l-wx------ 1 stephane stephane 64 Jul 1 10:52 1 -> pipe:[2044936] lrwx------ 1 stephane stephane 64 Jul 1 10:52 2 -> /dev/pts/15 lr-x------ 1 stephane stephane 64 Jul 1 10:52 3 -> /proc/465/fd lr-x------ 1 stephane stephane 64 Jul 1 10:52 7 -> /tmp/a 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? -- Stephane