test: fix thinko in previous commit

This commit is contained in:
Denis Vlasenko 2007-06-08 07:59:54 +00:00
parent 89bca27158
commit dc4ab54ea7

View File

@ -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 ]]");