From: Oleh Krehel Date: Thu, 14 Jul 2016 09:40:53 +0000 (+0200) Subject: lisp/dired-aux.el (dired-compress-file-suffixes): Add entry for tgz X-Git-Tag: emacs-26.0.90~1724 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4db19cdaf63289d413e5554253aa7eae931a5d4a;p=emacs.git lisp/dired-aux.el (dired-compress-file-suffixes): Add entry for tgz The previous behavior resulted in a "tgz" -> "tar" -> "tgz" loop, without any files being extracted. --- diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index ff1f14d7a65..4bdded35fe5 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -942,8 +942,8 @@ command with a prefix argument (the value does not matter)." ;; Solaris10 version of tar. Solaris10 becomes obsolete in 2021. ;; Same thing on AIX 7.1. ("\\.tar\\.gz\\'" "" "gzip -dc %i | tar -xv") + ("\\.tgz\\'" "" "gzip -dc %i | tar -xv") ("\\.gz\\'" "" "gunzip") - ("\\.tgz\\'" ".tar" "gunzip") ("\\.Z\\'" "" "uncompress") ;; For .z, try gunzip. It might be an old gzip file, ;; or it might be from compact? pack? (which?) but gunzip handles both.