mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-11 19:41:13 +02:00
(main): Warn if excess arguments are ignored.
E.g., printf foo bar now ignores the single non-format argument, bar.
This commit is contained in:
@@ -160,6 +160,9 @@ main (int argc, char **argv)
|
||||
}
|
||||
while (args_used > 0 && argc > 0);
|
||||
|
||||
if (argc > 0)
|
||||
error (0, 0, _("warning: excess arguments have been ignored"));
|
||||
|
||||
exit (exit_status);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user