patchThe GNU Bourne-Again SHell - Patches: patch #4755, curly braces expansion using...


You are not allowed to post comments on this tracker with your current authentication level.

patch #4755: curly braces expansion using leading-zeroes

Submitted by:  Carlo Caputo <zed9h>
Submitted on:  Wed 04 Jan 2006 12:18:07 AM UTC  
Votes:  100  
Category:  None Priority:  3 - Low
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Open

Wed 04 Jan 2006 12:18:07 AM UTC, original submission:

numeric range expansion changed to take in account possible leading zeroes, for better formatting and to avoid ugly workarounds like {00{1..9},0{10..99},{100..999}}; so, one can do:
{000..1} 000 001
{001..0} 001 000
{0..001} 000 001
{1..000} 001 000

the longuest number on the sequence dictates the final zero-fill length:
{00..001} 000 001
{01..000} 001 000

character sequences were not altered.

Carlo Caputo <zed9h>


Attached Files
file #9410:  bash-3.1-mkseq-zero-fill.patch added by zed9h (3KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chet (Updated the item)
  • -email is unavailable- added by dmchurch (Voted in favor of this item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-04 chet StatusNone => Done
    2007-10-17 dmchurch Carbon-Copy- => Added dmchurch
    2006-01-04 zed9h Attached File- => Added bash-3.1-mkseq-zero-fill.patch, #5703
        Carbon-Copy- => Added barrett9h

    Back to the top

    Powered by Savane 3.3