summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-03 19:34:22 +0000
committerJim Meyering <jim@meyering.net>2003-01-03 19:34:22 +0000
commitd517c8fa79d50cdad73b1a630f2adce9c8c466a8 (patch)
tree9354b8f0d6da69fc91d3cf3d936ecffaac316e8d /src/cp.c
parent820fd625f39d5b5239181113d0ab5051db38d5be (diff)
downloadcoreutils-d517c8fa79d50cdad73b1a630f2adce9c8c466a8.tar.gz
coreutils-d517c8fa79d50cdad73b1a630f2adce9c8c466a8.tar.bz2
coreutils-d517c8fa79d50cdad73b1a630f2adce9c8c466a8.zip
(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.
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cp.c b/src/cp.c
index 9bf607e07..adcb7b97f 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -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)