test: add examples when "%s: unknown operand" happens
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a4bc10cec7
commit
27c6c00a7c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user