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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to