From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27007 invoked by alias); 7 Dec 2010 11:43:24 -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: 28499 Received: (qmail 11342 invoked from network); 7 Dec 2010 11:43:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Tue, 7 Dec 2010 11:40:59 +0000 From: Peter Stephenson To: zsh workers Subject: Re: extended braces syntax, {1..32..-03} Message-ID: <20101207114059.53b3463a@pwslap01u.europe.root.pri> In-Reply-To: References: <20101205172515.29a07db3@pws-pc.ntlworld.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Dec 2010 11:40:59.0504 (UTC) FILETIME=[9E4BFF00:01CB9603] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.68.0.112 On Sun, 5 Dec 2010 22:32:01 +0100 Mikael Magnusson wrote: > I also just noticed that my code accepts a single - as the number 0, > should I fix that? ie {-..2} expands to 0 1 2. I'm not actually worried about this: it's the sort of edge case where as long as it does something predictable it doesn't matter much what. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom