diff --git a/commands/test.c b/commands/test.c index c4f4938..ab108fc 100644 --- a/commands/test.c +++ b/commands/test.c @@ -208,6 +208,11 @@ } } + if (left < adv) { + printf("test: failed to parse arguments\n"); + return 1; + } + if (last_cmp == 0) expr = last_expr || expr; else if (last_cmp == 1)