bin/162468: expr(1) false syntax errors
Eugene Grosbein
egrosbein at rdtc.ru
Fri Nov 11 09:10:07 UTC 2011
>Number: 162468
>Category: bin
>Synopsis: expr(1) false syntax errors
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Nov 11 09:10:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Eugene Grosbein
>Release: FreeBSD 8.2-STABLE i386
>Organization:
RDTC JSC
>Environment:
System: FreeBSD eg.sd.rdtc.ru 8.2-STABLE FreeBSD 8.2-STABLE #35: Thu Sep 29 14:35:55 NOVT 2011 root at eg.sd.rdtc.ru:/usr/local/obj/usr/local/src/sys/EG i386
>Description:
The following command fails:
# expr '>' : '.*'
expr: syntax error
It should return 1 (the length of the string '>') instead.
Note that Linux's expr does right thing.
>How-To-Repeat:
See above.
>Fix:
Unknown. It seems our expr threats '>' and operator
and not as operand for ':' operator.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list