From: Denys Vlasenko Date: Mon, 20 Dec 2010 02:43:20 +0000 (+0100) Subject: test: add examples when "%s: unknown operand" happens X-Git-Tag: 1_19_0~441 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27c6c00a7cf141aaa972c0f9691072db287a36ae;p=oweals%2Fbusybox.git test: add examples when "%s: unknown operand" happens Signed-off-by: Denys Vlasenko --- diff --git a/coreutils/test.c b/coreutils/test.c index 6524c4f07..8248a1ef5 100644 --- a/coreutils/test.c +++ b/coreutils/test.c @@ -878,7 +878,10 @@ int test_main(int argc, char **argv) res = !oexpr(check_operator(*args)); 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); res = 2; }