[BusyBox] coreutils/expr.c typo

Jean Wolter jw5 at os.inf.tu-dresden.de
Mon Sep 8 22:15:29 MDT 2003


Hello,

expr currently always adds even if told to subtract:

--- coreutils/expr.c    8 Sep 2003 12:12:19 -0000       1.1.1.2
+++ coreutils/expr.c    8 Sep 2003 19:09:31 -0000
@@ -438,7 +438,7 @@
                if (nextarg ("+"))
                        op = '+';
                else if (nextarg ("-"))
-                       op = '+';
+                       op = '-';
                else
                        return l;
                args++;

Bug is present in cvs head.

regards,
Jean


More information about the busybox mailing list