Re: RFE: brace expansion sequences should do zero padding

2007-09-03 Thread Martin von Gagern
Eric Blake wrote: > Perhaps rather than trying to improve bash {} expansion, you could use > coreutils seq instead. Hi Eric, thank's for taking an interest. seq is not that much different from printf here, although I hadn't known of its formatting capabilities. This changes nothing of the fact th

Re: RFE: brace expansion sequences should do zero padding

2007-09-03 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Martin von Gagern on 9/3/2007 2:16 PM: > > Another thing worth mentioning is negative numbers. My padding pads all > numbers to a common width, not a common number of digits. This is what > printf does, and it's a wee little bit easier to

Re: RFE: brace expansion sequences should do zero padding

2007-09-03 Thread Martin von Gagern
Hi again! I saw my first post made it to the list eventually as well. Sorry for the duplicate. I hadn't realized that the newsgroup was moderated. I'm a bit dishearted at the lack of response. On IRC many people pointed out that usually this kind of issue can be solved by passing a sequence to pr

fc -s ""="" "" segfaults in strsub()

2007-09-03 Thread Timo Lindfors
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/ locale' -DPACKAGE='b