From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2397 invoked from network); 30 Jul 2004 13:19:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Jul 2004 13:19:54 -0000 Received: (qmail 7571 invoked from network); 30 Jul 2004 13:19:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jul 2004 13:19:47 -0000 Received: (qmail 1556 invoked by alias); 30 Jul 2004 13:19:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7793 Received: (qmail 1546 invoked from network); 30 Jul 2004 13:19:04 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 30 Jul 2004 13:19:04 -0000 Received: (qmail 6039 invoked from network); 30 Jul 2004 13:17:06 -0000 Received: from lhuumrelay3.lnd.ops.eu.uu.net (62.189.58.19) by a.mx.sunsite.dk with SMTP; 30 Jul 2004 13:17:04 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i6UDH2v04211 for ; Fri, 30 Jul 2004 13:17:03 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 30 Jul 2004 14:16:17 +0100 Received: from news01.csr.com ([192.168.143.38]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 30 Jul 2004 14:18:59 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.12.11/8.12.11) with ESMTP id i6UDGxYE021993 for ; Fri, 30 Jul 2004 14:16:59 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.12.11/8.12.11/Submit) with ESMTP id i6UDGw59021990 for ; Fri, 30 Jul 2004 14:16:58 +0100 Message-Id: <200407301316.i6UDGw59021990@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users Subject: Re: OT: Bash 3.0 Released In-reply-to: "Oliver Kiddle"'s message of "Fri, 30 Jul 2004 14:24:24 +0200." <12365.1091190264@trentino.logica.co.uk> Date: Fri, 30 Jul 2004 14:16:57 +0100 From: Peter Stephenson X-OriginalArrivalTime: 30 Jul 2004 13:19:00.0039 (UTC) FILETIME=[C698AD70:01C47637] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-1.4 required=6.0 tests=BAYES_20 autolearn=no version=2.63 X-Spam-Hits: -1.4 Oliver Kiddle wrote: > Stephane Chazelas wrote: > > > Interesting feature not in zsh (AFAIK) : > > > > {a..d} for {a,b,c,d} > > setopt braceccl > echo {a-d} > > I'm not sure the bash syntax isn't better though... Yes, it would be. This is all ancient history. Bart will no doubt find some ancient email or change entry to contradict me, but it went something like this: - pfalstad original had just BRACE_CCL. The main reason this is an option rather than default behaviour is you can also do {aeiou} to generate any of the characters in the same way as {a,e,i,o,u}. (Bart told me for the purpose of the book that BRACE_CCL stands for `brace character classes', so it's deliberately similar to the way [aeiou] works in pattern matching.) - 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. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************