← Commit list

27c6c00a7

Denys Vlasenko
Denys Vlasenko
2010-12-20
FAILED Duration: 224s

Subject

test: add examples when "%s: unknown operand" happens

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/test.c+4 -1
@@ -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;
}