summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-10-17 16:26:30 +0000
committerJim Meyering <jim@meyering.net>1999-10-17 16:26:30 +0000
commit8bbc2e29372879f7b32d8c72185c8a8d1d091fb3 (patch)
tree5e45b24c6ec040cb8204f9858d73207886d555ac /src
parent5d694e4cc352928ec00524c1221ed1b467427a1c (diff)
downloadcoreutils-8bbc2e29372879f7b32d8c72185c8a8d1d091fb3.tar.xz
change a message and add usage(1) to another.
Diffstat (limited to 'src')
-rw-r--r--src/mv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mv.c b/src/mv.c
index 41d3a9250..0862b5c6b 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