projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15611bb
)
- fix testing primary expressions like '"-u" = "-u"'
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Tue, 12 Jun 2007 13:21:08 +0000
(13:21 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Tue, 12 Jun 2007 13:21:08 +0000
(13:21 -0000)
coreutils/test.c
patch
|
blob
|
history
diff --git
a/coreutils/test.c
b/coreutils/test.c
index 92f94b41497c12721e1c485e0fb932e294c7978d..bbbfce58e15de321edbd55a0f72c887eb960eeff 100644
(file)
--- 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];