summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenis Vlasenko2007-06-08 07:59:54 +0000
committerDenis Vlasenko2007-06-08 07:59:54 +0000
commitdc4ab54ea7e98fdfd3e1e07ca0743b77baca7856 (patch)
treea1558cdc19d611a5e6626597b4aecfab42cebebe /coreutils
parent89bca271585937793bcd07fe28ac642985ed0b6f (diff)
downloadbusybox-dc4ab54ea7e98fdfd3e1e07ca0743b77baca7856.zip
busybox-dc4ab54ea7e98fdfd3e1e07ca0743b77baca7856.tar.gz
test: fix thinko in previous commit
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index f861761..92f94b4 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -194,7 +194,7 @@ int bb_test(int argc, char **argv)
return 2;
}
argv[argc] = NULL;
- } else if (LONE_CHAR(arg0, '[') == 0) { /* "[[" ? */
+ } else if (LONE_CHAR(arg0+1, '[') == 0) { /* "[[" ? */
--argc;
if (strcmp(argv[argc], "]]") != 0) {
bb_error_msg("missing ]]");