Patch from Jean Wolter
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 8 Sep 2003 23:19:12 +0000 (23:19 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 8 Sep 2003 23:19:12 +0000 (23:19 -0000)
expr currently always adds even if told to subtract

coreutils/expr.c

index f58f4b06293989c97dbee8e883db1399e54c5a68..c2f5d4f3e9001f26ae54f3821de4c6a014102e7d 100644 (file)
@@ -438,7 +438,7 @@ static VALUE *eval3 (void)
                if (nextarg ("+"))
                        op = '+';
                else if (nextarg ("-"))
-                       op = '+';
+                       op = '-';
                else
                        return l;
                args++;