From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115 invoked by alias); 8 Jan 2014 09:23:02 -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: 18294 Received: (qmail 10714 invoked from network); 8 Jan 2014 09:22:57 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Wed, 8 Jan 2014 10:22:50 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: RFE: Brace expansion with single characters Message-ID: <20140108092250.GB21891@xvii.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <52CC7653.9080709@dserodio.net> <20140107231117.GB3764@ruderich.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140107231117.GB3764@ruderich.org> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6305-vl-r59709 (2013-04-16) On 2014-01-08 00:11:17 +0100, Simon Ruderich wrote: > Zsh also supports this, you just need to set the BRACE_CCL > option: > > % echo {a-j} > {a-j} > % setopt braceccl > % echo {a-j} > a b c d e f g h i j Not the way bash behaves: In bash: $ echo {a..j} a b c d e f g h i j In zsh: % echo {a..j} {a..j} % setopt braceccl % echo {a..j} . a j That's buggy. And the support for "-" is a bad idea: % echo {2014-01-08} 0 1 2 4 8 so that one cannot use dates in braces (very useful for svn users). No problems with bash. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)