Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: extended braces syntax, {1..32..-03}
- X-seq: zsh-workers 28481
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: extended braces syntax, {1..32..-03}
- Date: Sun, 5 Dec 2010 22:32:01 +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; bh=ZOvAxaldNrEdApfgr2FsSlzcQq5vQ5NN88GCOXl+3k0=; b=FRiFGQt1oZDlEBJtbmy3wn575AECz3pgo6jUM4wVkK+RKwm6KMMMIcwhqFYQ3YFq96 rVa2yAgrLVQR8XUAeiH/74GQOyXpmx45CHE9FMLEP1coYDLBSPoTWbx7OaNSBIsAToOZ D47P5pTR0OJrMyjVS2GMbzlfHSFDRO/oMB9mE=
- 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; b=rjl8cDzIEiJcy/n0GPjcpjbKKwfJns92eUAhkx1uyslCkM4obP0M53YPZ2ck/usaW6 13pTNQAu651E2k6zPsa9vIptm8h/Fr0ufxme9aNg/f/C2iLuERnkmlzulWBmIiYMXuxf b1v8hj/k+OBjh3dc3DcS8rq4PeFRp0BPC76Q8=
- In-reply-to: <AANLkTineOjuWrLv39gS6k7TWU1QTVqYURG0PfJJJXOob@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> <AANLkTineOjuWrLv39gS6k7TWU1QTVqYURG0PfJJJXOob@xxxxxxxxxxxxxx>
On 5 December 2010 20:25, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> Ah, I missed you already committed the tests, here's an incremental patch
> http://mika.l3ib.org/patches/zsh-braces-test-docs-incr.patch
Not sure if it's worth mentioning in the NEWS file, but you could use
negative start/end numbers if brace_ccl was set, which is a bit weird.
(This is because it was only prevented in hasbraces() and not in
xpandbraces()).
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.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author