Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: extended braces syntax, {1..32..-03}
- X-seq: zsh-workers 28499
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: extended braces syntax, {1..32..-03}
- Date: Tue, 7 Dec 2010 11:40:59 +0000
- In-reply-to: <AANLkTimGUf1WtgbWAUzFqyra63=zuR-++LVmYvk-Yfc8@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
- Organization: Cambridge Silicon Radio
- References: <AANLkTimOhbjnSiCWJ9y8jJ_WCscTF27ROR=Fg2twOMod@xxxxxxxxxxxxxx> <20101205172515.29a07db3@xxxxxxxxxxxxxxxxxxx> <AANLkTimm_EMUGdxew_DCQeY=WQ7a78JCX0X670dqeHVA@xxxxxxxxxxxxxx> <AANLkTineOjuWrLv39gS6k7TWU1QTVqYURG0PfJJJXOob@xxxxxxxxxxxxxx> <AANLkTimGUf1WtgbWAUzFqyra63=zuR-++LVmYvk-Yfc8@xxxxxxxxxxxxxx>
On Sun, 5 Dec 2010 22:32:01 +0100
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.
I'm not actually worried about this: it's the sort of edge case where
as long as it does something predictable it doesn't matter much what.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author