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
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
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
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