From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10990: 24.0.94; Uncompressing files Date: Mon, 12 Mar 2012 19:29:44 +0200 Message-ID: <837gypybg7.fsf@gnu.org> References: <83ipibxevk.fsf@gnu.org> <83boo2xyq8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1331573525 15311 80.91.229.3 (12 Mar 2012 17:32:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2012 17:32:05 +0000 (UTC) Cc: 10990@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 18:32:03 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S796F-0001Vv-Bu for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2012 18:31:59 +0100 Original-Received: from localhost ([::1]:48811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S796E-0006yM-Ob for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2012 13:31:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S795p-0006XW-4x for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 13:31:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S795T-0006w7-NT for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 13:31:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S795T-0006w2-KK for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 13:31:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S79YM-0006z7-Ks for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Mar 2012 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10990 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10990-submit@debbugs.gnu.org id=B10990.133157521126770 (code B ref 10990); Mon, 12 Mar 2012 18:01:02 +0000 Original-Received: (at 10990) by debbugs.gnu.org; 12 Mar 2012 18:00:11 +0000 Original-Received: from localhost ([127.0.0.1]:47140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S79XW-0006xj-CG for submit@debbugs.gnu.org; Mon, 12 Mar 2012 14:00:10 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:38159) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S79XR-0006xB-4q for 10990@debbugs.gnu.org; Mon, 12 Mar 2012 14:00:07 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M0S00M007IMS000@a-mtaout22.012.net.il> for 10990@debbugs.gnu.org; Mon, 12 Mar 2012 19:29:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.179.236]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M0S00LRJ8L9WPK0@a-mtaout22.012.net.il>; Mon, 12 Mar 2012 19:29:34 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57729 Archived-At: > Date: Mon, 12 Mar 2012 08:46:50 +0100 > From: Dani Moncayo > Cc: 10990@debbugs.gnu.org > > In the standard MinGW/MSYS distribution, "gzip" program is designed to > do both things. In fact "gzip -h" shows: > > C:\emacs>gzip -h > Usage: gzip [OPTION]... [FILE]... > Compress or uncompress FILEs (by default, compress FILES in-place). > [...] Can I persuade you to use the native Windows binaries instead? > So, in this case, "gunzip" is unnecessary. Well, evidently, it is necessary ;-) > BTW, I tried to copy "gzip.exe" as "gunzip.exe" as you suggested, but > it doesn't work, because Emacs invokes "gunzip" without "-d" > (obviously), so it doesn't work. gunzip doesn't need -d, it knows by itself that it needs to decompress. No, I guess you have some version of gzip where the maintainers decided not to change the behavior according to the name of the program. Or maybe the MSYS port has a bug in comparing the program name with "gunzip" (the .exe suffix needs to be stripped). > A workaround that does work (I've just tested it) is to create a file > "gunzip.bat" with a single line "gzip -d %1 %2 %3 %4", and store it in > the same folder as "gzip.exe". Yep, that's another way of solving this conundrum.