Re: Additional feature for the seq command

2005-05-01 Thread Paul Eggert
Axel Liljencrantz <[EMAIL PROTECTED]> writes: > I did this since the way I want to use this feature is for doing > things with sets of data that is split in multiple files with names > like sampa.asc, sampb.asc, sampc.asc, etc.. Aha! That helps to explain things. In that case, why not make this

Re: Additional feature for the seq command

2005-05-01 Thread Axel Liljencrantz
On Fri, 29 Apr 2005, Andreas Schwab wrote: > Axel Liljencrantz <[EMAIL PROTECTED]> writes: > > > As to non-latin and multibyte, I only have use for doing sequences of > > letters from the english alphabet, and that is what I implemented. > > Your version will happily accept non-ASCII letters as

Re: Additional feature for the seq command

2005-05-01 Thread Axel Liljencrantz
On Fri, 29 Apr 2005, Paul Eggert wrote: > Axel Liljencrantz <[EMAIL PROTECTED]> writes: > > > I did this since the way I want to use this feature is for doing > > things with sets of data that is split in multiple files with names > > like sampa.asc, sampb.asc, sampc.asc, etc.. > > Aha! That

Re: Additional feature for the seq command

2005-04-29 Thread Andreas Schwab
Axel Liljencrantz <[EMAIL PROTECTED]> writes: > As to non-latin and multibyte, I only have use for doing sequences of > letters from the english alphabet, and that is what I implemented. Your version will happily accept non-ASCII letters as start or end point, as long as they are single-byte. An

Re: Additional feature for the seq command

2005-04-29 Thread Axel Liljencrantz
On Fri, 29 Apr 2005, Andreas Schwab wrote: > Axel Liljencrantz <[EMAIL PROTECTED]> writes: > > > This is an excellent question. I'm glad you asked, since I've given > > it a fair bit of thought. It might seem like a good idea to use the > > character ordering of the current locale, so you can ge

Re: Additional feature for the seq command

2005-04-29 Thread Andreas Schwab
Axel Liljencrantz <[EMAIL PROTECTED]> writes: > This is an excellent question. I'm glad you asked, since I've given > it a fair bit of thought. It might seem like a good idea to use the > character ordering of the current locale, so you can generate > sequences with all the strange characters of y

Re: Additional feature for the seq command

2005-04-29 Thread James Youngman
On Fri, Apr 29, 2005 at 01:37:02AM -0700, Paul Eggert wrote: > Axel Liljencrantz <[EMAIL PROTECTED]> writes: > > seq a 3 h > > should output > > > > a > > d > > g > > Hmm, suppose someone wants the characters from '9' through ';'? > What about non-ASCII locales? What order should the characters a

Re: Additional feature for the seq command

2005-04-29 Thread Axel Liljencrantz
On Fri, 2005-04-29 at 01:37 -0700, Paul Eggert wrote: > Axel Liljencrantz <[EMAIL PROTECTED]> writes: > > seq a 3 h > > > > should output > > > > a > > d > > g > > Hmm, suppose someone wants the characters from '9' through ';'? The way I implemented it, seq quits with an error message if you spec

Re: Additional feature for the seq command

2005-04-29 Thread Paul Eggert
Axel Liljencrantz <[EMAIL PROTECTED]> writes: > seq a 3 h > > should output > > a > d > g Hmm, suppose someone wants the characters from '9' through ';'? What about non-ASCII locales? What order should the characters appear? ___ Bug-coreutils mailin

Additional feature for the seq command

2005-04-28 Thread Axel Liljencrantz
Hello! It would be nice if one could use the seq command to specify a sequence of characters, as well as a sequence of numbers. Example: Writing seq a 3 h should output a d g I have modified seq to work this way. My updated seq uses isalpha to check if the user requested a character sequen