From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18268 invoked by alias); 5 Dec 2010 21:32:07 -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: 28481 Received: (qmail 23917 invoked from network); 5 Dec 2010 21:32:06 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ZOvAxaldNrEdApfgr2FsSlzcQq5vQ5NN88GCOXl+3k0=; b=FRiFGQt1oZDlEBJtbmy3wn575AECz3pgo6jUM4wVkK+RKwm6KMMMIcwhqFYQ3YFq96 rVa2yAgrLVQR8XUAeiH/74GQOyXpmx45CHE9FMLEP1coYDLBSPoTWbx7OaNSBIsAToOZ D47P5pTR0OJrMyjVS2GMbzlfHSFDRO/oMB9mE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rjl8cDzIEiJcy/n0GPjcpjbKKwfJns92eUAhkx1uyslCkM4obP0M53YPZ2ck/usaW6 13pTNQAu651E2k6zPsa9vIptm8h/Fr0ufxme9aNg/f/C2iLuERnkmlzulWBmIiYMXuxf b1v8hj/k+OBjh3dc3DcS8rq4PeFRp0BPC76Q8= MIME-Version: 1.0 In-Reply-To: References: <20101205172515.29a07db3@pws-pc.ntlworld.com> Date: Sun, 5 Dec 2010 22:32:01 +0100 Message-ID: Subject: Re: extended braces syntax, {1..32..-03} From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On 5 December 2010 20:25, Mikael Magnusson wrote: > > Ah, I missed you already committed the tests, here's an incremental patch > http://mika.l3ib.org/patches/zsh-braces-test-docs-incr.patch Not sure if it's worth mentioning in the NEWS file, but you could use negative start/end numbers if brace_ccl was set, which is a bit weird. (This is because it was only prevented in hasbraces() and not in xpandbraces()). 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. -- Mikael Magnusson