From luthien.in-berlin.de!wagner@bolzen.in-berlin.de  Thu Nov 30 17:03:03 1995
Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21])
          by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id RAA09916
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Nov 1995 17:03:01 -0800
Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1)
	  from bolzen.in-berlin.de (194.94.235.1) with smtp
	  id <m0tLJrg-0001hzC>; Fri, 1 Dec 95 02:02 MET
Received: by bolzen.in-berlin.de (Smail3.1.29.1 #3)
	id m0tLJrZ-0007ScC; Fri, 1 Dec 95 02:02 GMT+0100
Received: by luthien.in-berlin.de (8.6.12/1.34)
	id AAA22165; Fri, 1 Dec 1995 00:00:07 +0100
Message-Id: <199511302300.AAA22165@luthien.in-berlin.de>
Date: Fri, 1 Dec 1995 00:00:07 +0100
From: wagner@luthien.in-berlin.de
Reply-To: wagner@luthien.in-berlin.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: /bin/expr broken in 2.1.0-RELEASE
X-Send-Pr-Version: 3.2

>Number:         855
>Category:       bin
>Synopsis:       /bin/expr broken in 2.1.0-RELEASE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 30 17:10:02 PST 1995
>Closed-Date:    Fri Dec 1 09:22:19 MET 1995
>Last-Modified:  Fri Dec  1 00:40:06 PST 1995
>Originator:     Olaf Wagner
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
>Environment:

	

>Description:
The ':'-operator fails for certain regular expressions (see below).
Due to this failure several scripts of the cnews-distribution
(eg. upact and recovact) produced an corrupted active file with
one missing field. It took me some time to isolate the problem and
to recover all the news data...

>How-To-Repeat:
[/usr/lib/news] root % expr "1111111111" : '.*\('$dots'\)$
'
1111111111
[/usr/lib/news] root % expr "0000000000" : '.*\('$dots'\)$
'

[/usr/lib/news] root % 

>Fix:
As I don't have any more time to have a look at the sources, I will
install /bin/expr from the 2.0.5 distribution, wich worked correctly.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Fri Dec 1 09:22:19 MET 1995 
State-Changed-Why:  
This has already been fixed in rev 1.11 of expr.y by the time of submission. 


From: J Wunsch <j@uriah.heep.sax.de>
To: wagner@luthien.in-berlin.de
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/855: /bin/expr broken in 2.1.0-RELEASE
Date: Fri, 1 Dec 1995 08:52:55 +0100 (MET)

 As wagner@luthien.in-berlin.de wrote:
 > 
 > The ':'-operator fails for certain regular expressions (see below).
 
 For all those where the first operand was a valid number.
 
 > As I don't have any more time to have a look at the sources, I will
 > install /bin/expr from the 2.0.5 distribution, wich worked correctly.
 
 It was broken in other respects.  (It compared all numbers as strings.)
 
 The fix is already in -current; i'll send it to you in a separate
 reply (without the list).
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
>Unformatted:
