aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-12 13:21:08 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-12 13:21:08 +0000
commitfdcbc4e7095c225a8586dcb96a7a99c2d1007aeb (patch)
tree3efb7e78fe09f6c45850f124c3857a2b06b94ba3 /coreutils
parent15611bb95815de14bcb35f66bd10089a322ea30b (diff)
downloadbusybox-fdcbc4e7095c225a8586dcb96a7a99c2d1007aeb.tar.gz
- fix testing primary expressions like '"-u" = "-u"'
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index 92f94b414..bbbfce58e 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -224,7 +224,7 @@ int bb_test(int argc, char **argv)
if (argc == 2)
return *argv[1] == '\0';
//assert(argc);
- if (LONE_CHAR(argv[1], '!')) {
+ {
bool _off;
if (argc == 3)
return *argv[2] != '\0';
@@ -232,7 +232,7 @@ int bb_test(int argc, char **argv)
t_lex(argv[2 + _off]);
if (t_wp_op && t_wp_op->op_type == BINOP) {
t_wp = &argv[1 + _off];
- return binop() == 1;
+ return binop() == (LONE_CHAR(argv[1], '!'));
}
}
t_wp = &argv[1];