Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: extended braces syntax, {1..32..-03}

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

Mikael Magnusson

Messages sorted by: Reverse Date, Date, Thread, Author