From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6066 invoked by alias); 17 Jun 2015 15:03:29 -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: X-Seq: 35505 Received: (qmail 23116 invoked from network); 17 Jun 2015 15:03:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1434553070; bh=kd6tJ2hVM7MJUPRKcftVpit98Sm7GpKV+/KSfl6LMLc=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=C3iyA5uWXMEWba8dQDr3cq62hT2fr9+k9LkRk7ztmL/Qo58+BScJiB1b4CDDJ8Ahv3ygivM7p0G7it62nNL2aydMe9IvoKckk3j50Zo4JG1Q5uObP5XrP7TvSsuAEVFaTn/ozwBcW6cyU2Mt1AKnUhoNB7VxQJJlXHx/f7LJ1BvPMEPkVQbVuDMGGVOuBBq5Qiix4nl9FPI0JXD7TpemyQ1X4uJFLatDBgcNGRKGhbFxTFQ4pCVMQaA7x7scbef9ecwuht9b+lruj3FcT3IN/pSWx/8Y96kh0jZLdnycgbhM9XgfKXSeyXs1dZWiXohuD6MSAfHnD0avVZVGvNl1WQ== X-Yahoo-Newman-Id: 82430.46280.bm@smtp110.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Z_c3FcMVM1mGqH4h3EbQN5PktsAacY4WEnL0EF8m3jcfVnm SidCAPkva8v472kGgisj8VSD_hUuaPfsk4dW4HPOsB4Eg.TPB9xEp.r8NV80 vOyV9xrBIOg4ZtSVpiUed5W3iZvouwajyRKsvpcR15C.Afi5TQFuDXUJ5a6N 1dJt2jB12bpldkrORSkL4j_wjivp_.sarfFZZkZhqupMGwm0E1NosegZB3EK tVGFJv4ghj.6LucpvIakzJO0meBQcjsDxJMSHzvbJruL5pYrH92ABZ4RAmIF HudzLIAVzlL.JMOjjR9dbwrnPQ_JToZJEvicqrPFsjicamQNIY2eJaLMBupa pu6SVuWfdWT1EaankW_EamgDGcBSBobo51nHK_L4AEnPOvzMTPIJM1AFasSE JhUbxk4Y0KSkdwbihUo0wm2lKWdWoV1H.vvG3QeuJHnRZIiKAEA3v.U4VtBg 9VpFnWTEmEQSPTLh8weEAdmeZEhrs_J7xO7KcvgV.nj33Z_RbbD_.eGB89Kn AWS28pdFCvwnqvhOzM9vfqlOSDCDqoPGp X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <558047B6.4090908@gmx.com> From: Oliver Kiddle References: <1434432668-18303-1-git-send-email-llua@gmx.com> <22433.1434440572@thecus.kiddle.eu> <558047B6.4090908@gmx.com> To: zsh-workers@zsh.org Subject: Re: [PATCH] _file_descriptors: initialize `list' array with local -a MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29393.1434553068.1@thecus.kiddle.eu> Date: Wed, 17 Jun 2015 16:57:49 +0200 Message-ID: <29394.1434553069@thecus.kiddle.eu> Eric Cook wrote: > Question: is there a reason why the upper limit is fd9? Because redirections don't let you use two-digit numbers. However, the {var} syntax will allocate higher numbered file descriptors so the limitation is out-of-date and can probably be ignored. The updated function looks good. One slight issue is that description separators don't align now that two digit fds are included: 0 -- standard input 1 -- standard output 10 -- /dev/pts/6 zformat can do that in the general case but you might get away with "${(r.$#fds[-1].)i} $sep ... We have worse examples of that such as git subcommands. Oliver