test: add examples when "%s: unknown operand" happens

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-12-20 03:43:20 +01:00
parent a4bc10cec7
commit 27c6c00a7c

View File

@ -878,7 +878,10 @@ int test_main(int argc, char **argv)
res = !oexpr(check_operator(*args)); res = !oexpr(check_operator(*args));
if (*args != NULL && *++args != NULL) { if (*args != NULL && *++args != NULL) {
/* TODO: example when this happens? */ /* Examples:
* test 3 -lt 5 6
* test -t 1 2
*/
bb_error_msg("%s: unknown operand", *args); bb_error_msg("%s: unknown operand", *args);
res = 2; res = 2;
} }