summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath2003-09-08 23:19:12 +0000
committerGlenn L McGrath2003-09-08 23:19:12 +0000
commit07f6b95d8f75cd38262b02976ff92a5d6d328950 (patch)
tree103eb54c3b1962882140d46746c77ddc805230fa
parent5875be406e71e0edbb6cc1873f8c5526151790cf (diff)
downloadbusybox-07f6b95d8f75cd38262b02976ff92a5d6d328950.zip
busybox-07f6b95d8f75cd38262b02976ff92a5d6d328950.tar.gz
Patch from Jean Wolter
expr currently always adds even if told to subtract
-rw-r--r--coreutils/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c
index f58f4b0..c2f5d4f 100644
--- a/coreutils/expr.c
+++ b/coreutils/expr.c
@@ -438,7 +438,7 @@ static VALUE *eval3 (void)
if (nextarg ("+"))
op = '+';
else if (nextarg ("-"))
- op = '+';
+ op = '-';
else
return l;
args++;