From 4db19cdaf63289d413e5554253aa7eae931a5d4a Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Thu, 14 Jul 2016 11:40:53 +0200 Subject: [PATCH] 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. --- lisp/dired-aux.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.2