Subject: Re: /bin/expr has a bug
To: J.T. Conklin <jconklin@netcom.com>
From: Chris G. Demetriou <cgd@alpha.bostic.com>
List: netbsd-bugs
Date: 07/10/1994 14:10:42
> Your test cases work fine on the i386. Anyone with another big endian
> machine care to test this out? I want to know if this is a hp, or big
> endian problem, as it is probably in the regular expression routines
> themselves.
On a sparcstation, i see:
$ uname -mrs
NetBSD 1.0-ALPHA sparc
$ ls -la /bin/expr
-r-xr-xr-x 1 bin bin 90112 Jul 10 12:45 /bin/expr
$ expr foo : foo
1
$ echo $?
0
$ expr foo : f
1
$ echo $?
0
$ expr foo : xxx
0
$ echo $?
1
I.e. it seems to get everything except the first case.
"strange."
chris
------------------------------------------------------------------------------