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

Submitter:  Carlo Caputo <zed9h>
Submitted:  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

Discussion

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

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

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    History

    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.16-a7ba.
    Corresponding source code