diff options
author | Jim Meyering <jim@meyering.net> | 1998-07-04 03:59:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-07-04 03:59:34 +0000 |
commit | 4475ffda4811aa4acec3c308b09f1921fa48b10c (patch) | |
tree | f4ebf53d9273c9e3d9991aadb582004e8adb7664 /src | |
parent | 1b23f5094d5ebe37de3684742de89aad7b127fe8 (diff) | |
download | coreutils-4475ffda4811aa4acec3c308b09f1921fa48b10c.tar.xz |
(remove_dir): Use fprintf, not error to avoid newline in prompt.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/remove.c b/src/remove.c index 7a6585bd1..6d5a61b33 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; |