#include "cp-hash.h"
#include "error.h"
#include "path-concat.h"
+#include "quote.h"
#include "remove.h"
/* The official name of this program (e.g., no `g' prefix). */
dir_to_remove = NULL;
error (0, 0,
- _("cannot move `%s' to a subdirectory of itself, `%s'"),
- source, dest);
+ _("cannot move %s to a subdirectory of itself, %s"),
+ quote_n (0, source), quote_n (0, dest));
}
else if (rename_succeeded)
{
remove_fini ();
if (fail)
- error (0, errno, _("cannot remove `%s'"), dir_to_remove);
+ error (0, errno, _("cannot remove %s"), quote (dir_to_remove));
}
if (copy_into_self)
{
if (!dest_is_dir)
{
- error (0, 0, _("specified target, `%s' is not a directory"),
- target_directory);
+ error (0, 0, _("specified target, %s is not a directory"),
+ quote (target_directory));
usage (1);
}
}