Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: extended braces syntax, {1..32..-03}
- X-seq: zsh-workers 28493
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- Subject: Re: extended braces syntax, {1..32..-03}
- Date: Mon, 6 Dec 2010 22:04:35 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- 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:cc:content-type; bh=3U9WJpxj8rIyS2mkNP1yUGPePe/+SJMO+b/SBdt8O/w=; b=OAbtGApnL8pzkwnP2J231IQ4qfVRgS6OXCNJoymmeCHZuSdd/zlQpexHP0TBxr8MA1 ujQxAa3ToI+WEy8q20ilUU5Z1zJc3/M6+Q5pzmxyR9ywFoAjUiuepIZQFA1G2sqgyqTa 7sZdUxBuDT3k6Sybc+lvfloQkg+xMR4G1naIM=
- 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 :cc:content-type; b=M/TmM1VgrADO5apMJMxgcBNQncKEKrNv9v0J5uXt5EV6IYKBhyuiOm+FnfgpTdcn4P IaMCGzpde4t/HR9v9hd8Njs+RPTpiq8oRRJaOFtwPO9HoH8xyiRrz1qBi0fu+ekuws5T b9qkKNX4ZyNeiIywhJWNMPK8VS7xb+3LRHTtg=
- In-reply-to: <AANLkTik5vUOiXYvQ_J6rrynq_g25-V9JTu_wf7jqgbtM@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> <AANLkTimGUf1WtgbWAUzFqyra63=zuR-++LVmYvk-Yfc8@xxxxxxxxxxxxxx> <AANLkTik5vUOiXYvQ_J6rrynq_g25-V9JTu_wf7jqgbtM@xxxxxxxxxxxxxx>
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