GNU bug report logs - #10990
24.0.94; Uncompressing files

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Sun, 11 Mar 2012 08:54:02 UTC

Severity: minor

Found in version 24.0.94

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Marco Centurion <mcenturion <at> fing.edu.uy>
To: 10990 <at> debbugs.gnu.org
Subject: bug#10990: 24.0.94; Uncompressing files
Date: Tue, 31 Aug 2021 13:20:01 -0300
[Message part 1 (text/plain, inline)]
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?

[bug#10990.patch (text/x-patch, inline)]
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")
[Message part 3 (text/plain, inline)]
-- 
Marco Centurion
Unidad de Recursos Informáticos
Facultad de Ingeniería - UdelaR

This bug report was last modified 3 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.