bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10990: 24.0.94; Uncompressing files


From: Marco Centurion
Subject: bug#10990: 24.0.94; Uncompressing files
Date: Tue, 31 Aug 2021 13:20:01 -0300

Given that we already use `gzip` in dired for other formats like `.tar.gz`
and `.tgz`, could we not just replace gunzip with `gzip -d`?  I mean,
even in my (gnu/linux) system `gunzip` is just a script that passes
through to `gzip -d`.

I don't think that change would be a breaking one because we already
assume that `gzip` is present in the system and that `gzip -d`
decompresses files (again, the command for `.tar.gz` is "gzip -dc %i |
tar -xf -").  But if it is considered breaking, we could maybe add an
option to only use gzip?

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 0b8c693b29..8e00af8f96 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -1137,12 +1137,12 @@ dired-compress-file-suffixes
     ("\\.tar\\.gz\\'" "" "gzip -dc %i | tar -xf -")
     ("\\.tar\\.xz\\'" "" "xz -dc %i | tar -xf -")
     ("\\.tgz\\'" "" "gzip -dc %i | tar -xf -")
-    ("\\.gz\\'" "" "gunzip")
+    ("\\.gz\\'" "" "gzip -d")
     ("\\.lz\\'" "" "lzip -d")
     ("\\.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.
-    ("\\.z\\'" "" "gunzip")
+    ("\\.z\\'" "" "gzip -d")
     ("\\.dz\\'" "" "dictunzip")
     ("\\.tbz\\'" ".tar" "bunzip2")
     ("\\.bz2\\'" "" "bunzip2")
-- 
Marco Centurion
Unidad de Recursos Informáticos
Facultad de Ingeniería - UdelaR

reply via email to

[Prev in Thread] Current Thread [Next in Thread]