From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marco Centurion Newsgroups: gmane.emacs.bugs Subject: bug#10990: 24.0.94; Uncompressing files Date: Tue, 31 Aug 2021 13:20:01 -0300 Message-ID: <87k0k18u32.fsf@fing.edu.uy> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14713"; mail-complaints-to="usenet@ciao.gmane.io" To: 10990@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 31 18:21:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mL6Vd-0003dp-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 18:21:13 +0200 Original-Received: from localhost ([::1]:44404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL6Vc-0007Nt-3H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 12:21:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL6VT-0007KX-I1 for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 12:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mL6VS-0007ci-9k for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mL6VS-00073U-6Y for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 12:21:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Marco Centurion Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Aug 2021 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10990 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163042683327060 (code B ref -1); Tue, 31 Aug 2021 16:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Aug 2021 16:20:33 +0000 Original-Received: from localhost ([127.0.0.1]:35289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL6Uv-00072K-Ho for submit@debbugs.gnu.org; Tue, 31 Aug 2021 12:20:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL6Uq-000727-S1 for submit@debbugs.gnu.org; Tue, 31 Aug 2021 12:20:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL6Un-0006MK-S2 for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 12:20:22 -0400 Original-Received: from smtp.fing.edu.uy ([164.73.32.16]:56172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL6Ue-0006vZ-1t for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 12:20:17 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.fing.edu.uy (Postfix) with ESMTP id 30139E0E1C for ; Tue, 31 Aug 2021 13:20:07 -0300 (-03) X-Virus-Scanned: amavisd-new at fing.edu.uy Original-Received: from smtp.fing.edu.uy ([127.0.0.1]) by localhost (smtp.fing.edu.uy [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DY4ICFys2E8x for ; Tue, 31 Aug 2021 13:20:02 -0300 (-03) Original-Received: from localhost.localdomain (r167-60-135-28.dialup.adsl.anteldata.net.uy [167.60.135.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mcenturion) by smtp.fing.edu.uy (Postfix) with ESMTPSA id 0B99BE0DA7 for ; Tue, 31 Aug 2021 13:20:02 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fing.edu.uy; s=default; t=1630426802; bh=INHUumLhc+fp4ZKxiGknUHpQr9tPnRxsatMiQdtvteI=; h=From:To:Subject:Date; b=NdUlKVEWmnJu+uuGU9Hij23iw3KUG7PFXMEAX1AsJfInBWJS6ZdGPq5rFIdAUocSq Vf5wPPseMUjGyLJTjErU/SeGJjCTZqNrxzYfcONmuyS/YpIXcERwg5+OcdzCwUCi7R HIsF7FkY/s/jDDY3kuaTcSL+rsGhcquGGL/TPyLY= Received-SPF: pass client-ip=164.73.32.16; envelope-from=mcenturion@fing.edu.uy; helo=smtp.fing.edu.uy X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213109 Archived-At: --=-=-= Content-Type: text/plain 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? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=bug#10990.patch 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") --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Marco Centurion Unidad de Recursos Inform=C3=A1ticos Facultad de Ingenier=C3=ADa - UdelaR --=-=-=--