Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: extended braces syntax, {1..32..-03}
- X-seq: zsh-workers 28491
- 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:00:57 +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=BqxPFva+MXPUVUEJsx2Rd8VVq0XNUc3OMnJu4tNauNQ=; b=tNDNv8pB+T5sTLdSw5OXhpnwSdnQz5AsYQKzXNcraKc76Awotlm2O2r3gIhY0wkovT 2xlDPjrdzA46pfpIUOp5H4QDvs3PmYJK4R3/SdY+Rqy4Xc8mks1pXpdo/S65rm7+FqXM Y5l/F9HQGNfySeuKVH/FFs63r6eZkVTB9nUkw=
- 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=suRssY1PjG4VpUxtJo4dllG7i8XITfFHBZywX5BX+QCDXeqoRr8f0pfsS95jlAVHe7 UNzfybFZyyQfCIlFxKsNdU/rezNM0W8K4W+Jmcv2hHlsHUivfh8OpFs5/Xkva4vYKk1l Jn6NjlBOP3eX8/5ae3sbZgvZ2p4U80Sdr9Z+k=
- In-reply-to: <AANLkTinvYn_F50XiPdMauivmpsg2-NE9DrYzwcc+a+b8@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> <AANLkTinvYn_F50XiPdMauivmpsg2-NE9DrYzwcc+a+b8@xxxxxxxxxxxxxx>
On 6 December 2010 21:57, Richard Hartmann <richih.mailinglist@xxxxxxxxx> wrote:
> On Sun, Dec 5, 2010 at 16:41, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
>> % echo {1..-04}
>> 001 000 -01 -02 -03 -04
>
> Why is there extra padding for 001 and 000?
>
>> % echo {1..-4..01}
>> 01 00 -1 -2 -3 -4
>> % echo {1..-4..-02}
>> -03 -01 001
>>
>> Originally i had the same number of zeroes regardless of the minus
sign, but bash does it this way, so I figured I'd be consistent with
that.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author