]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(remove_dir): Use fprintf, not error to avoid newline in prompt.
authorJim Meyering <jim@meyering.net>
Sat, 4 Jul 1998 03:59:34 +0000 (03:59 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 4 Jul 1998 03:59:34 +0000 (03:59 +0000)
src/remove.c

index 7a6585bd10e593c69531f76aafa3de10467d26eb..6d5a61b33ad7c7ba42f7ec30a5d80e9684cb265a 100644 (file)
@@ -720,8 +720,10 @@ remove_dir (struct File_spec *fs, int need_save_cwd, const struct rm_options *x)
 
   if (x->interactive)
     {
-      error (0, 0, _("remove directory `%s'%s? "), full_filename (dir_name),
-            (status != RM_OK ? _(" (might be nonempty)") : ""));
+      fprintf (stderr, _("%s: remove directory `%s'%s? "),
+              program_name,
+              full_filename (dir_name),
+              (status != RM_OK ? _(" (might be nonempty)") : ""));
       if (!yesno ())
        {
          return RM_USER_DECLINED;