Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: extended braces syntax, {1..32..-03}
- X-seq: zsh-workers 28479
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: extended braces syntax, {1..32..-03}
- Date: Sun, 5 Dec 2010 20:25:21 +0100
- 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=
- In-reply-to: <AANLkTimm_EMUGdxew_DCQeY=WQ7a78JCX0X670dqeHVA@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTimOhbjnSiCWJ9y8jJ_WCscTF27ROR=Fg2twOMod@xxxxxxxxxxxxxx> <20101205172515.29a07db3@xxxxxxxxxxxxxxxxxxx> <AANLkTimm_EMUGdxew_DCQeY=WQ7a78JCX0X670dqeHVA@xxxxxxxxxxxxxx>
On 5 December 2010 20:17, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 5 December 2010 18:25, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
>> On Sun, 5 Dec 2010 16:41:20 +0100
>> Mikael Magnusson <mikachu@xxxxxxxxx> 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. ÂHere 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
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author