From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacsW32 can't find gunzip Date: Mon, 13 Jul 2009 21:40:35 +0300 Message-ID: <834otgs9y4.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1247510545 2151 80.91.229.12 (13 Jul 2009 18:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2009 18:42:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 13 20:42:18 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MQQTh-0000tv-8R for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 20:42:17 +0200 Original-Received: from localhost ([127.0.0.1]:45383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQQTg-0004vd-My for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 14:42:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQQTJ-0004vB-RX for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 14:41:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQQTI-0004um-O5 for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 14:41:53 -0400 Original-Received: from [199.232.76.173] (port=46820 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQQTI-0004ui-IU for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 14:41:52 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:52228) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQQTI-0005Pg-0j for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 14:41:52 -0400 Original-Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KMQ00F00H3RCL00@i-mtaout7.012.net.il> for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 21:40:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.66.189]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KMQ0080HH7OUWA0@i-mtaout7.012.net.il> for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 21:40:37 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66042 Archived-At: > From: Xah Lee > Date: Sun, 12 Jul 2009 17:58:28 -0700 (PDT) > > after looking into this with your help, i think my problem is about > emacs unable to execute unix shell script. > > pressing Z in dired to compress a file is no problem. The problem is > with uncompressing. The gunzip is located at > > c:/cygwin/bin/gunzip > > however, it is just a shell script, the content is: > > #!/bin/sh > PATH=${GZIP_BINDIR-'/usr/bin'}:$PATH > exec gzip -d "$@" Yuck! I _hate_ this unportable stuff! > any suggestion on getting emacs to call gzip -d directly? You can't, not without significant changes to Dired. It currently assumes that the association in dired-compress-file-suffixes is a file name of a program, not a shell command. Does it help to copy gzip.exe to gunzip.exe? If that doesn't work (it depends on how your gzip.exe was compiled), then perhaps crafting a gunzip.bat batch file that invokes "gzip -d %*" will work.