aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-12-20 03:43:20 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-12-20 03:43:20 +0100
commit27c6c00a7cf141aaa972c0f9691072db287a36ae (patch)
treefcf1360bf80109576f3ad2177603ea374c214809
parenta4bc10cec7645d72c7284deec070c0f56ebdadaf (diff)
downloadbusybox-w32-27c6c00a7cf141aaa972c0f9691072db287a36ae.tar.gz
busybox-w32-27c6c00a7cf141aaa972c0f9691072db287a36ae.tar.bz2
busybox-w32-27c6c00a7cf141aaa972c0f9691072db287a36ae.zip
test: add examples when "%s: unknown operand" happens
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/test.c5
1 files changed, 4 insertions, 1 deletions
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)
878 res = !oexpr(check_operator(*args)); 878 res = !oexpr(check_operator(*args));
879 879
880 if (*args != NULL && *++args != NULL) { 880 if (*args != NULL && *++args != NULL) {
881 /* TODO: example when this happens? */ 881 /* Examples:
882 * test 3 -lt 5 6
883 * test -t 1 2
884 */
882 bb_error_msg("%s: unknown operand", *args); 885 bb_error_msg("%s: unknown operand", *args);
883 res = 2; 886 res = 2;
884 } 887 }