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 authentification 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: NonePriority: 3 - Low
Status: DonePrivacy: Public
Assigned to: NoneOpen/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 (3kB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 04 May 2015 02:15:19 PM UTCchetStatusNone=>Done
    Wed 17 Oct 2007 12:41:21 AM UTCdmchurchCarbon-Copy-=>Added dmchurch
    Wed 04 Jan 2006 12:18:07 AM UTCzed9hAttached File-=>Added bash-3.1-mkseq-zero-fill.patch, #5703
      Carbon-Copy-=>Added barrett9h

    Back to the top

    Powered by Savane 3.1-cleanup