diff options
author | Jim Meyering <jim@meyering.net> | 2000-07-30 18:42:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-07-30 18:42:07 +0000 |
commit | 0e1dfa9b8b134abc7ec5ee92cc21bc44f5422302 (patch) | |
tree | 95a901fd08ea255788c62079a94c6fc1b184c7d7 /src/remove.c | |
parent | 7b79dfe695f69ff7e10b5c825a76b225c23c0200 (diff) | |
download | coreutils-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.c | 6 |
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)) { |