[git commit master 1/1] test: add examples when "%s: unknown operand" happens
Denys Vlasenko
vda.linux at googlemail.com
Mon Dec 20 02:43:20 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=27c6c00a7cf141aaa972c0f9691072db287a36ae
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/test.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/coreutils/test.c b/coreutils/test.c
index 6524c4f..8248a1e 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;
}
--
1.7.2.2
More information about the busybox-cvs
mailing list