expr applet bug?
Luciano Miguel Ferreira Rocha
strange at nsk.no-ip.org
Fri Dec 8 11:23:39 PST 2006
On Fri, Dec 08, 2006 at 08:13:35PM +0100, Cristian Ionescu-Idbohrn wrote:
> There seems to be a bug in expr (both 1.1.3 and svn):
>
> # ./busybox expr xyz0 : '[^0-9]\+\([0-9]\+\)'
>
> returns 0 on stdout and an error code 1.
>
> # ./busybox expr xyz1 : '[^0-9]\+\([0-9]\+\)'
>
> returns 1 on stdout and an error code 0.
>
I get the same behaviour from GNU's expr. What behaviour did you expect?
--
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20061208/c81be7b1/attachment.pgp
More information about the busybox
mailing list