From fb132e47370378474c68ad22c1c0cb2ccee178de Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 29 Oct 2010 11:46:52 +0200 Subject: whitespace cleanup Signed-off-by: Denys Vlasenko --- coreutils/test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coreutils/test.c') diff --git a/coreutils/test.c b/coreutils/test.c index f18e3ae5a..6524c4f07 100644 --- a/coreutils/test.c +++ b/coreutils/test.c @@ -49,9 +49,9 @@ * state. */ /* test(1) accepts the following grammar: - oexpr ::= aexpr | aexpr "-o" oexpr ; - aexpr ::= nexpr | nexpr "-a" aexpr ; - nexpr ::= primary | "!" primary + oexpr ::= aexpr | aexpr "-o" oexpr ; + aexpr ::= nexpr | nexpr "-a" aexpr ; + nexpr ::= primary | "!" primary primary ::= unary-operator operand | operand binary-operator operand | operand -- cgit v1.2.3-55-g6feb From 27c6c00a7cf141aaa972c0f9691072db287a36ae Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 20 Dec 2010 03:43:20 +0100 Subject: test: add examples when "%s: unknown operand" happens Signed-off-by: Denys Vlasenko --- coreutils/test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'coreutils/test.c') 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; } -- cgit v1.2.3-55-g6feb