Subject: bin/23810: expr fails to recognize null string
To: None <gnats-bugs@gnats.netbsd.org>
From: None <vax@carolina.rr.com>
List: netbsd-bugs
Date: 12/20/2003 21:12:54
>Number: 23810
>Category: bin
>Synopsis: expr fails to recognize null string
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 21 02:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: VaX#n8
>Release: NetBSD 1.5.1
>Organization:
>Environment:
>Description:
$ expr '' : '^$' > /dev/null && echo hi
$ echo $?
1
>How-To-Repeat:
>Fix:
expr x'$value' : '^x$'
>Release-Note:
>Audit-Trail:
>Unformatted: