summaryrefslogtreecommitdiff
path: root/src/remove.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-30 18:42:07 +0000
committerJim Meyering <jim@meyering.net>2000-07-30 18:42:07 +0000
commit0e1dfa9b8b134abc7ec5ee92cc21bc44f5422302 (patch)
tree95a901fd08ea255788c62079a94c6fc1b184c7d7 /src/remove.c
parent7b79dfe695f69ff7e10b5c825a76b225c23c0200 (diff)
downloadcoreutils-0e1dfa9b8b134abc7ec5ee92cc21bc44f5422302.tar.xz
(remove_file): Quote the file names that are displayed with --verbose.
Diffstat (limited to 'src/remove.c')
-rw-r--r--src/remove.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remove.c b/src/remove.c
index 65560db46..ab13a73ff 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -647,7 +647,7 @@ remove_file (struct File_spec *fs, const struct rm_options *x)
}
if (x->verbose)
- printf (_("removing %s\n"), full_filename (pathname));
+ printf (_("removing %s\n"), quote (full_filename (pathname)));
if (unlink (pathname) && (errno != ENOENT || !x->ignore_missing_files))
{
@@ -696,7 +696,7 @@ remove_dir (struct File_spec *fs, int need_save_cwd, const struct rm_options *x)
if (x->verbose)
printf (_("removing all entries of directory %s\n"),
- full_filename (dir_name));
+ quote (full_filename (dir_name)));
/* Save cwd if needed. */
if (need_save_cwd && save_cwd (&cwd))
@@ -782,7 +782,7 @@ was replaced with either another directory or a link to another directory."),
if (x->verbose)
printf (_("removing the directory itself: %s\n"),
- full_filename (dir_name));
+ quote (full_filename (dir_name)));
if (rmdir (dir_name) && (errno != ENOENT || !x->ignore_missing_files))
{