Re: Bug in Expr 2.0.12 - .* too greedy

Derek Robert Price <[email protected]> Fri, 08 Nov 2002 15:55:04 -0500
Newsgroups gmane.comp.version-control.cvs.bugs,gmane.comp.gnu.sh-utils.bugs
Organization Ximbiot <http://ximbiot.com>
Message-ID <[email protected]>
Jim Meyering wrote:

>Derek Robert Price <[email protected]> wrote:
>  
>
>>The expr, version 2.0.12, which happens to be distributed with RH
>>Linux 8.0 is broken.  .* is way too greedy.  Here's a test case:
>>    
>>
>
>Hi Derek,
>
>Thanks for the report.
>I get the expected (not buggy) results when
>using the latest test release:
>
>  ftp://alpha.gnu.org/gnu/fetish/coreutils-4.5.3.tar.gz
>
>  $ expr 'abc
>  > xxxxx
>  > def' : 'abc
>  > .*
>  > def'
>  13
>  $ expr --vers
>  expr (GNU coreutils) 4.5.3
>
>So I guess you should encourage RH to upgrade.
>  
>

Nope.  That doesn't appear to be the problem:

[oberon@empress coreutils-4.5.3]$ src/expr 'abc
xxxxx
def' : 'abc
 > .*
 > def'
0
[oberon@empress coreutils-4.5.3]$ src/expr --version
expr (GNU coreutils) 4.5.3
Written by Mike Parker.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[oberon@empress coreutils-4.5.3]$

RedHat is blaming glibc version 2.2.93.  What version of glibc do you 
have installed?

I ask because I'm trying to figure out if this is worth the hassle of 
upgrading glibc without RedHat's help or if I should be reporting this 
problem to the glibc mailing list.

Derek

-- 
                *8^)

Email: [email protected]

Get CVS support at <http://ximbiot.com>!
-- 
If that plane leaves the ground and you're not with him, you'll regret it.
Maybe not today and maybe not tomorrow, but soon and for the rest of your life.

		- Humphrey Bogart as Rick, _Casablanca_