diff options
author | Jim Meyering <jim@meyering.net> | 2001-09-17 10:11:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-09-17 10:11:27 +0000 |
commit | c3a2a9a1cfc4bbb23175c5c8f47d78ba5f7be8f0 (patch) | |
tree | c9ddc579f68b4a2b2495d41ce6c88a28ef4c36f9 /src | |
parent | 83ab129925c4d69606e9ef34836cedeebe64f788 (diff) | |
download | coreutils-c3a2a9a1cfc4bbb23175c5c8f47d78ba5f7be8f0.tar.xz |
(main): Change the `ignoring excess arguments' diagnostic
to list the first one we're ignoring. Suggestion from Karl Berry.
Diffstat (limited to 'src')
-rw-r--r-- | src/printf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c index 8c7dcfe8d..7009303ed 100644 --- a/src/printf.c +++ b/src/printf.c @@ -1,5 +1,5 @@ /* printf - format and print data - Copyright (C) 1990-2000, Free Software Foundation, Inc. + Copyright (C) 1990-2001, Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -554,7 +554,9 @@ main (int argc, char **argv) while (args_used > 0 && argc > 0); if (argc > 0) - error (0, 0, _("warning: excess arguments have been ignored")); + error (0, 0, + _("warning: ignoring excess arguments, starting with `%s'"), + argv[0]); exit (exit_status); } |