Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 1995 00:00:07 +0100
From:      wagner@luthien.in-berlin.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/855: /bin/expr broken in 2.1.0-RELEASE
Message-ID:  <199511302300.AAA22165@luthien.in-berlin.de>
Resent-Message-ID: <199512010110.RAA10282@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         855
>Category:       bin
>Synopsis:       /bin/expr broken in 2.1.0-RELEASE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 30 17:10:02 PST 1995
>Last-Modified:
>Originator:     Olaf Wagner
>Organization:
>Release:        FreeBSD 2.1-STABLE i386
>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.
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511302300.AAA22165>