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

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



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