]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
change a message and add usage(1) to another.
authorJim Meyering <jim@meyering.net>
Sun, 17 Oct 1999 16:26:30 +0000 (16:26 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 17 Oct 1999 16:26:30 +0000 (16:26 +0000)
src/mv.c

index 41d3a9250664a61ac5bad4ba21227dbfc37f6e25..0862b5c6b5858e0089cb7bddfcfae5a63c18c4ff 100644 (file)
--- 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