From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14313 invoked by alias); 11 Feb 2015 20:52:55 -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: X-Seq: 19860 Received: (qmail 16305 invoked from network); 11 Feb 2015 20:52:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=gQQRyAOGueNuZR5QVaQKDbqJzsyD8DOgk83I1U7gvOA=; b=wfJNowDbsfcgAWs7b2W8mYjids9+9654IUq2PyKw5ITqf09LQVSHdMQ7NpEFHeV1M3 0cvHTiy0fTM4kQbxMxxYgqyZbEHwTUGbFL3T0hD2Dyb1nks5juQwsLcG4SxQfLrrkixq whzrCggqB+aDxFIRSln7h4f7W4rbZbvM6ZsmehksYoSaBgyJNrGu6PDnQ2k14M4QDsmO yhXugLJ+9JlTCtKYUNlXASVcgCJsS/i2Hl2ASu39vQ0ht5xmQLb3EQFALTlUEGNq1L1s RuN1NiSlb2aVT+ClruBWpiq/b0q9ibAsurRCErKzBJpVTV2f8NbRDy4wtJlqz+2r5zeD BqaA== X-Received: by 10.180.87.65 with SMTP id v1mr60580382wiz.12.1423687630778; Wed, 11 Feb 2015 12:47:10 -0800 (PST) Date: Wed, 11 Feb 2015 20:47:09 +0000 From: Stephane Chazelas To: zsh-users@zsh.org Subject: Re: multi-digit file descriptors Message-ID: <20150211204708.GA10940@chaz.gmail.com> Mail-Followup-To: zsh-users@zsh.org References: <20150211162637.GA9083__22180.4416658872$1423672129$gmane$org@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150211162637.GA9083__22180.4416658872$1423672129$gmane$org@xvii.vinc17.org> User-Agent: Mutt/1.5.21 (2010-09-15) 2015-02-11 17:26:37 +0100, Vincent Lefevre: > Contrary to bash and mksh, zsh doesn't support file descriptors with > multiple digits. Considered the following file "redir". > > ---------------------------------------- > ( echo foo >&9; ) 9>my_file > cat my_file > > ( echo bar >&10; ) 10>my_file > cat my_file > ---------------------------------------- > > xvii% bash redir > foo > bar > xvii% mksh redir > foo > bar > xvii% zsh redir > foo > redir:4: parse error near `10' > > The behavior of dash and ksh93 is similar to zsh. But is there any > reason? > > BTW, POSIX doesn't seem to restrict file descriptors to 1 digit. [...] Related discussion on the austin-group mailing list: http://thread.gmane.org/gmane.comp.standards.posix.austin.general/10094 -- Stephane