Re: sed not working

2005-09-05 Thread Rein Kadastik
Tim Robbins wrote: Rein Kadastik wrote: Giorgos Keramidas wrote: On 2005-09-03 14:17, Rein Kadastik <[EMAIL PROTECTED]> wrote: Rein Kadastik wrote: Well I have one guess here. In estonian alphabet, the z comes immediately after s and before t. So as the regex orders [a-z] the charact

Re: sed not working

2005-09-05 Thread Tim Robbins
Rein Kadastik wrote: Giorgos Keramidas wrote: On 2005-09-03 14:17, Rein Kadastik <[EMAIL PROTECTED]> wrote: Rein Kadastik wrote: Well I have one guess here. In estonian alphabet, the z comes immediately after s and before t. So as the regex orders [a-z] the characters t, u, v, w, x, y

Re: sed not working

2005-09-04 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Peter Jeremy <[EMAIL PROTECTED]> writes: : On Sun, 2005-Sep-04 20:17:28 +0300, Rein Kadastik wrote: : >Andrea Campi wrote: : >>Actually, the best way forward would probably be to mail Ruslan directly. : : Agreed. : : >LANG=C would be nice but the charac

Re: sed not working

2005-09-04 Thread Rein Kadastik
Peter Jeremy wrote: On Sun, 2005-Sep-04 20:17:28 +0300, Rein Kadastik wrote: Andrea Campi wrote: Actually, the best way forward would probably be to mail Ruslan directly. Agreed. Any contacts? LANG=C would be nice but the character classes should be implemented as well.

Re: sed not working

2005-09-04 Thread Peter Jeremy
On Sun, 2005-Sep-04 20:17:28 +0300, Rein Kadastik wrote: >Andrea Campi wrote: >>Actually, the best way forward would probably be to mail Ruslan directly. Agreed. >LANG=C would be nice but the character classes should be implemented as >well. I would like to be the one who concentrates on that su

Re: sed not working

2005-09-04 Thread Rein Kadastik
Andrea Campi wrote: On Sun, Sep 04, 2005 at 10:51:26AM +0200, Jeremie Le Hen wrote: Oh, and by the way: this has nothing to do with hackers@, you should have tried questions@ first. I agree this has initially a little to do with -hackers@ but the appearance this thread took in the la

Re: sed not working

2005-09-04 Thread Andrea Campi
On Sun, Sep 04, 2005 at 10:51:26AM +0200, Jeremie Le Hen wrote: > > Oh, and by the way: this has nothing to do with hackers@, you should > > have tried questions@ first. > > I agree this has initially a little to do with -hackers@ but the > appearance this thread took in the last messages makes me

Re: sed not working

2005-09-04 Thread Jeremie Le Hen
Hi Andrea, > That's expected, and it's well known. You should either force LANG=C > or (MUCH better) use [[:alpha:]]. See man re_format(7) for more info. > > Oh, and by the way: this has nothing to do with hackers@, you should > have tried questions@ first. I agree this has initially a little to

Re: sed not working

2005-09-04 Thread Greg Black
On 2005-09-04, Rein Kadastik wrote: > Giorgos Keramidas wrote: > >> By using a character class: >> >> [[:alpha:]] >> >> AFAIK, if you are using non-English locales, there's no guarantee that >> [a-z] will be the entire set of lowercase letters, or that it will only >> include lowercase lett

Re: sed not working

2005-09-03 Thread Rein Kadastik
Giorgos Keramidas wrote: On 2005-09-03 14:17, Rein Kadastik <[EMAIL PROTECTED]> wrote: Rein Kadastik wrote: Well I have one guess here. In estonian alphabet, the z comes immediately after s and before t. So as the regex orders [a-z] the characters t, u, v, w, x, y are left out How to

Re: sed not working

2005-09-03 Thread Giorgos Keramidas
On 2005-09-03 14:17, Rein Kadastik <[EMAIL PROTECTED]> wrote: > Rein Kadastik wrote: > >Well I have one guess here. In estonian alphabet, the z comes > >immediately after s and before t. So as the regex orders [a-z] the > >characters t, u, v, w, x, y are left out > > > >How to order the sed to use

Re: sed not working

2005-09-03 Thread Andrea Campi
On Sat, Sep 03, 2005 at 02:04:52PM +0300, Rein Kadastik wrote: > Well I have one guess here. In estonian alphabet, the z comes > immediately after s and before t. So as the regex orders [a-z] the > characters t, u, v, w, x, y are left out That's expected, and it's well known. You should either f

Re: sed not working

2005-09-03 Thread Rein Kadastik
Rein Kadastik wrote: Rein Kadastik wrote: Peter Jeremy wrote: On Sat, 2005-Sep-03 12:27:50 +0300, Rein Kadastik wrote: Lets take the following sed command (from the ncurses MKlib_gen.sh script): sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' OK got again some extremely strange testin

Re: sed not working

2005-09-03 Thread Rein Kadastik
Rein Kadastik wrote: Peter Jeremy wrote: On Sat, 2005-Sep-03 12:27:50 +0300, Rein Kadastik wrote: Lets take the following sed command (from the ncurses MKlib_gen.sh script): sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' OK got again some extremely strange testing results. If there is

Re: sed not working

2005-09-03 Thread Rein Kadastik
Peter Jeremy wrote: On Sat, 2005-Sep-03 12:27:50 +0300, Rein Kadastik wrote: Lets take the following sed command (from the ncurses MKlib_gen.sh script): sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' OK got again some extremely strange testing results. If there is anywhere in the first to

Re: sed not working

2005-09-03 Thread Peter Jeremy
On Sat, 2005-Sep-03 12:27:50 +0300, Rein Kadastik wrote: >Lets take the following sed command (from the ncurses MKlib_gen.sh script): > >sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' ... >This works, but I have found a specific pattern, where it does not work: >int something -> int something >Does any

sed not working

2005-09-03 Thread Rein Kadastik
Hi, I have a very interesing problem with sed in FreeBSD. Lets take the following sed command (from the ncurses MKlib_gen.sh script): sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' This command alters the input: blah something -> blah gen_something This works, but I have found a specific pattern,