From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21576 invoked by alias); 5 Dec 2010 19:25:34 -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: 28479 Received: (qmail 10816 invoked from network); 5 Dec 2010 19:25:32 -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.216.178 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 :content-transfer-encoding; bh=f2JG5LcPVT35AtzIvEn3Tp1OAfrUiFH93Btt+MYmoUo=; b=LI+bVtuiQbMJqZHL+8nXBTEJVnxUm3UQcCEL/2yefINqs+5fVEMsyFn4qnXJOpfqcA pVDbXzjn0127MrJ78boNmUfhI78pYNURpKrp0qm00xZs8NWzzCo6pJY0olCc58RUOSy/ znHlBPol3QICv7vK7IGnNm7EHLdmsIVZOd81U= 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:content-transfer-encoding; b=tRtg+UBXn0d9fqpU21y87vczHQgOxPWS3eZ2v9NdhZlpoCvXByYzKyvzj9AO0Wt3yi 9XlFRWYDZCKUh37YfFjSZF3rkZNznPWqqdnPidOQW7/KZZVU8V0dujA7ePVGedAXB1zG gnziKw79FPv0mEvOo1PsJwR2FFK9qc/8I0OlY= MIME-Version: 1.0 In-Reply-To: References: <20101205172515.29a07db3@pws-pc.ntlworld.com> Date: Sun, 5 Dec 2010 20:25:21 +0100 Message-ID: Subject: Re: extended braces syntax, {1..32..-03} From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 5 December 2010 20:17, Mikael Magnusson wrote: > On 5 December 2010 18:25, Peter Stephenson = wrote: >> On Sun, 5 Dec 2010 16:41:20 +0100 >> Mikael Magnusson wrote: >>> This patch adds the syntax {start..end..step} to brace expansion. It >>> also allows negative numbers to be used (this was allowed when >>> braceccl was set before, which worked inconsistently). It also fixes >>> up zero-padding with negative numbers. You can specify zeropadding in >>> the step, as well as a negative step. >>>... >>> Missing still is documentation, but I've had this lying around since >>> august so I figured I'd post it and see if anyone wants to change >>> anything first. >> >> As long as we [have] tests that pass, it's OK by me. >> >> Embarrassingly, there isn't a set of tests for brace expansion at the >> moment, though a few aspects are covered in other tests. =C2=A0Here is a >> short 'before' set of tests (I tried it out with the patch applied even >> though it doesn't test the new features). > > Here's a patch that adds documentation and any tests I could think of > (it includes your patch (you had a typo "pading" on one line)). Ah, I missed you already committed the tests, here's an incremental patch http://mika.l3ib.org/patches/zsh-braces-test-docs-incr.patch --=20 Mikael Magnusson