diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index f2cb745ad4..1b73f098e3 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -1246,7 +1246,9 @@ dired-do-compress-to (?i . ,(mapconcat (lambda (in-file) (shell-quote-argument - (file-name-nondirectory in-file))) + (replace-regexp-in-string + (expand-file-name dired-directory) "" + in-file))) in-files " ")))))) (message (ngettext "Compressed %d file to %s" "Compressed %d files to %s"