bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Brace expansion padding inconsistencies


From: Chet Ramey
Subject: Re: Brace expansion padding inconsistencies
Date: Wed, 10 Aug 2011 20:17:02 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11

On 8/10/11 4:43 PM, gregry . wrote:

> bash> echo {0..9..2}
> 0 2 4 6 8
> bash> echo {00..9..2}
> 00 02 04 06 08
> bash> echo {0..09..2}
> 00000 00002 00004 00006 00008
> bash> echo {00..09..2}
> 00000 00002 00004 00006 00008
> 
> The first two are as expected, but the last two have unexpected additional 
> padding.
> These examples were using:
> bash> bash --version
> GNU bash, version 4.0.35(1)-release (i586-suse-linux-gnu)
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This was fixed in bash-4.1.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]