1
0
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:
Jim Meyering
1996-11-23 02:34:31 +00:00
parent b36e061e8a
commit 38da840313
+3
View File
@@ -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);
}