[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in Expr 2.0.12 - .* too greedy

From: Derek Robert Price
Subject: Bug in Expr 2.0.12 - .* too greedy
Date: Fri, 08 Nov 2002 12:24:00 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0

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:

How reproducible:

Steps to Reproduce:
$ expr 'abc
def' : 'abc

Actual Results:  0

Expected Results:  13

You can confirm the expected results with:

$ expr 'abc
def' : 'abc

if you still don't see what I mean.

I believe this conflicts with the POSIX specification and the Single UNIX Specification. This breaks, at least the CVS test suite, which is running fine on at least these other six platforms: Mac OSX (Darwin fool.ximbiot.com 5.5 Darwin Kernel Version 5.5: Thu May 30 14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC Power Macintosh powerpc), IBM AIX (AIX rioscpu2 3 4 000030498200), Solaris (SunOS sun120.sdrc.com 5.8 Generic sun4u sparc SUNW,Ultra-5_10), HP HP-UX (HP-UX hp253 B.11.00 A 9000/785 2000761248 two-user license), SGI IRIX (IRIX64 sgiop131 6.5 04191226 IP30), & BSDI BSD/OS (BSD/OS thor.sdrc.com 4.0.1 BSDI BSD/OS 4.0.1 Kernel #3: Thu Mar 9 11:29:16 EST 2000).

Let me know if I should take this up with RH rather than you guys.



Email: address@hidden

Get CVS support at <http://ximbiot.com>!
I will not celebrate meaningless milestones.
I will not celebrate meaningless milestones.
I will not celebrate meaningless milestones...

         - Bart Simpson on chalkboard, _The Simpsons_

reply via email to

[Prev in Thread] Current Thread [Next in Thread]