This commit is contained in:
savalet
2025-05-04 16:56:19 +02:00
parent 73f4499e0e
commit 859fc8b2e3
2 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,8 @@ int builtins_expr(ef_t *ef[[gnu::unused]], char **args)
for (; args[argc] != nullptr; argc++);
if (argc < 2)
return fprintf(stderr, "%s: missing operand\n", args[0]), -1;
return fprintf(stderr, "%s: missing operand\nTry 'expr --help' for"
" more information.", args[0]), -1;
state = (expr_state_t){ .args = &args[1] };
ret = expr_run(&state, 0, 0);
if (ret.type == E_VAL_ERR)

View File

@@ -236,11 +236,10 @@ TESTS = [
cmds=[
"expr 1 + 2",
"expr 4 - 2",
"expr 3 \\* 5",
"expr 5 = 5",
"expr 5 \\< 10",
"expr 5 \\> 3",
"expr\n",
#"expr 3 \\* 5",
#"expr 5 = 5",
#"expr 5 \\< 10",
#"expr 5 \\> 3",
],
depends_on=("ARGS",)
),