too few operands ("missing operand after `xxx'") or
too many operands ("extra operand `xxx'").
Include "quote.h" and/or "error.h" if it wasn't already being included.
(beyond, main): Likewise.
#include "system.h"
#include "error.h"
#include "euidaccess.h"
+#include "quote.h"
#ifndef _POSIX_VERSION
# include <sys/param.h>
static void
beyond (void)
{
- test_syntax_error (_("argument expected\n"), NULL);
+ test_syntax_error (_("missing argument after %s"), quote (argv[argc - 1]));
}
/* Syntax error for when an integer argument was expected, but
value = posixtest (argc - 1);
if (pos != argc)
- test_syntax_error (_("too many arguments\n"), NULL);
+ test_syntax_error (_("extra argument %s"), quote (argv[pos]));
test_exit (SHELL_BOOLEAN (value));
}