From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17518 invoked from network); 1 Aug 2004 13:45:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Aug 2004 13:45:38 -0000 Received: (qmail 98918 invoked from network); 1 Aug 2004 13:45:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Aug 2004 13:45:29 -0000 Received: (qmail 11815 invoked by alias); 1 Aug 2004 13:44:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7797 Received: (qmail 11805 invoked from network); 1 Aug 2004 13:44:47 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 1 Aug 2004 13:44:47 -0000 Received: (qmail 96996 invoked from network); 1 Aug 2004 13:42:48 -0000 Received: from mail36.messagelabs.com (193.109.254.211) by a.mx.sunsite.dk with SMTP; 1 Aug 2004 13:42:46 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-5.tower-36.messagelabs.com!1091367765!8169554 X-StarScan-Version: 5.2.10; banners=-,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 29734 invoked from network); 1 Aug 2004 13:42:45 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-5.tower-36.messagelabs.com with SMTP; 1 Aug 2004 13:42:45 -0000 Received: from trentino.logica.co.uk ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id i71DgiUI014097 for ; Sun, 1 Aug 2004 14:42:44 +0100 Received: from trentino.logica.co.uk (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id 59A83796A37F for ; Sun, 1 Aug 2004 15:42:00 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <200407301316.i6UDGw59021990@news01.csr.com> From: Oliver Kiddle References: <200407301316.i6UDGw59021990@news01.csr.com> To: zsh-users Subject: Re: OT: Bash 3.0 Released Date: Sun, 01 Aug 2004 15:42:00 +0200 Message-ID: <4508.1091367720@trentino.logica.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Peter wrote: > - I added the {num1..num2} syntax, borrowed from Perl. Braces without > commas don't usually have any effect, so I wasn't too worried about > compatibility. But to be on the safe side I made sure it fitted > the form exactly. > > - Bash borrowed {num1..num2}, although without the feature to pad > leading zeroes. > > - They've obviously decided to extend this to characters in a consistent > way. > > Borrowing it back is presumably not that hard, but I'm doubtful how > useful it would be. It's in the sort of area where no one is going > to expect much compatibility between shells. On the other hand, if it came from perl, it might make sense to copy perl more accurately. Perl handles things like (0xab..0xde) and (aa..zz) and even (Ab1..De2) sanely. This makes it somewhat less like braceccl. If you try things like {A..z} in the new bash, you'll see that it is trying to be like braceccl. Just not very well given that it limits the choice of start and end characters. Oliver