possible bug in "expr" core utils 5.93

2005-12-02 Thread Serge Leschinsky
Dear Sirs, Regexp seems to be broken. >[EMAIL PROTECTED]:~ # set -x ; IPP="ipsec0=eth0" virt=`expr $IPP : >'\([^=].*\)=.*'` && echo $virt ; set +x >+ IPP=ipsec0=eth0 >++ expr ipsec0=eth0 : '\([^=].*\)=.*' >+ virt= >+ set +x >[EMAIL PROTECTED]:~ # expr --version >expr (GNU coreutils) 5.93 >Copy

Re: possible bug in "expr" core utils 5.93

2005-12-02 Thread Bob Proulx
Serge Leschinsky wrote: > Regexp seems to be broken. Thank you for reporting this problem. And thank you for making a nice test case for it. Unfortunately I cannot reproduce this problem on my system and will need more information from you. > >++ expr ipsec0=eth0 : '\([^=].*\)=.*' > >+ virt= I

Re: possible bug in "expr" core utils 5.93

2005-12-02 Thread Paul Eggert
Serge Leschinsky <[EMAIL PROTECTED]> writes: >>[EMAIL PROTECTED]:~ # set -x ; IPP="ipsec0=eth0" virt=`expr $IPP : >>'\([^=].*\)=.*'` && echo $virt ; set +x >>+ IPP=ipsec0=eth0 >>++ expr ipsec0=eth0 : '\([^=].*\)=.*' >>+ virt= >>+ set +x I don't observe this behavior on my host (Debian stable x86

Re[2]: possible bug in "expr" core utils 5.93

2005-12-04 Thread Serge Leschinsky
Dear Bob, Friday, December 2, 2005, 8:41:17 PM, you wrote: > I don't see that. I see this: > expr ipsec0=eth0 : '\([^=].*\)=.*' > ipsec0 ... > This makes be believe it is either related to the locale that you have > in your environment or related to the libc regular expression library > on