From: Jim Meyering Date: Sun, 17 Oct 1999 16:26:30 +0000 (+0000) Subject: change a message and add usage(1) to another. X-Git-Tag: FILEUTILS-4_0j-trial~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bbc2e29372879f7b32d8c72185c8a8d1d091fb3;p=thirdparty%2Fcoreutils.git change a message and add usage(1) to another. --- diff --git a/src/mv.c b/src/mv.c index 41d3a92506..0862b5c6b5 100644 --- a/src/mv.c +++ b/src/mv.c @@ -451,7 +451,7 @@ main (int argc, char **argv) { if (!dest_is_dir) { - error (0, 0, _("specified target directory, `%s' is not a directory"), + error (0, 0, _("specified target, `%s' is not a directory"), target_directory); usage (1); } @@ -473,8 +473,11 @@ main (int argc, char **argv) } if (n_files > 2 && !dest_is_dir) - error (1, 0, + { + error (0, 0, _("when moving multiple files, last argument must be a directory")); + usage (1); + } } x.backup_type = (make_backups