1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 08:10:15 +02:00

(do_copy): Tweak diagnostic to be consistent with the one

from mv: s/missing file arguments/missing file argument/.
With --target-directory=DIR, cp and mv work with a single file argument.
Reported by Karl Berry.
This commit is contained in:
Jim Meyering
2003-01-03 19:34:22 +00:00
parent 820fd625f3
commit d517c8fa79
+2 -2
View File
@@ -1,5 +1,5 @@
/* cp.c -- file copying (main routines)
Copyright (C) 89, 90, 91, 1995-2002 Free Software Foundation.
Copyright (C) 89, 90, 91, 1995-2003 Free Software Foundation.
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
@@ -490,7 +490,7 @@ do_copy (int n_files, char **file, const char *target_directory,
if (n_files <= 0)
{
error (0, 0, _("missing file arguments"));
error (0, 0, _("missing file argument"));
usage (EXIT_FAILURE);
}
if (n_files == 1 && !target_directory)