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

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



On 6 December 2010 22:02, Richard Hartmann <richih.mailinglist@xxxxxxxxx> wrote:
> On Sun, Dec 5, 2010 at 22:32, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
>> 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.
>
> Personally, I think yes. It's not a useful feature, mathematically
> wrong and hogs a special char that might be used for some future
> feature.

I actually realized it's not my fault, it always did that :). (but you
still needed setopt braceccl to expand them before the patch).

-- 
Mikael Magnusson



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