From: Jim Meyering Date: Sat, 4 Jul 1998 03:59:34 +0000 (+0000) Subject: (remove_dir): Use fprintf, not error to avoid newline in prompt. X-Git-Tag: FILEUTILS-3_16r~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4475ffda4811aa4acec3c308b09f1921fa48b10c;p=thirdparty%2Fcoreutils.git (remove_dir): Use fprintf, not error to avoid newline in prompt. --- diff --git a/src/remove.c b/src/remove.c index 7a6585bd10..6d5a61b33a 100644 --- a/src/remove.c +++ b/src/remove.c @@ -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;