From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: emacsW32 can't find gunzip Date: Sun, 12 Jul 2009 22:19:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: <76b76fcc-f93b-416d-bd93-cce51881af32@v37g2000prg.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247496510 20867 80.91.229.12 (13 Jul 2009 14:48:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2009 14:48:30 +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 16:48:23 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 1MQMpI-0004BL-St for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 16:48:21 +0200 Original-Received: from localhost ([127.0.0.1]:34272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQMpI-000460-1a for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 10:48:20 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v37g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 97 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1247462396 28543 127.0.0.1 (13 Jul 2009 05:19:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 13 Jul 2009 05:19:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v37g2000prg.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170805 X-Mailman-Approved-At: Mon, 13 Jul 2009 10:47:01 -0400 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:66029 Archived-At: thanks Will. The download links at http://unxutils.sourceforge.net/ seems all broken. Might try git binaries down the road. ...i've been thinking, perhaps emacs today should simply include all the unixutil binaries integrated with emacs. That way, saves a lot trouble. These files are quite small by today's standards. Xah =E2=88=91 http://xahlee.org/ =E2=98=84 On Jul 12, 8:58=C2=A0pm, Will Willis wrote: > http://unxutils.sourceforge.net/ is good. Also see the unix binaries that > come with the windows version of the Git client. > just > make sure, as noted above, that where ever you place these binaries, > the paths are in you PATH environmental variable. > > -Will > > > > On Sun, Jul 12, 2009 at 7:58 PM, Xah Lee wrote: > > On Jul 12, 12:29 pm, Eli Zaretskii wrote: > > > > From: Xah Lee > > > > Date: Sat, 11 Jul 2009 22:14:33 -0700 (PDT) > > > > > when using emacsW32, in dired, i press Z to uncompress a file, but = i > > > > got this error: > > > > > apply: Searching for program: no such file or directory, gunzip > > > > > any idea how to fix that? > > > > Make sure gzip.exe is in some directory mentioned in exec-path (insid= e > > > Emacs) or in Path (outside Emacs). > > > > > I have cygwin installed. =E2=80=9Cwhich gunzip=E2=80=9D shows =E2= =80=9C/usr/bin/gunzip=E2=80=9D. > > > > There's no such thing as "/usr/bin/gunzip" on Windows: every absolute > > > file name must begin with a drive letter or two slashes. =C2=A0Cygwin= hides > > > the drive letter (and possibly also a few leading directories) to > > > pretend there's a Posix-standard directory tree on your machine, but > > > that's an illusion that only Cygwin programs can share. =C2=A0EmacsW3= 2, > > > being a native Windows program, cannot. > > > > > Manually gunning gunzip or gzip -d with shell-command works fine. > > > > Probably because your shell is set to the Cygwin shell. =C2=A0But Z i= nvokes > > > gzip via call-process, which bypasses the shell, so you need to play > > > by the Windows rules. > > > thanks a lot. very informative. > > > 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=3D${GZIP_BINDIR-'/usr/bin'}:$PATH > > exec gzip -d "$@" > > > So, it seems to me, dired of emacs on Windows is unable execute this > > unix shell script as is... > > > any suggestion on getting emacs to call gzip -d directly? > > > at this point, a easy practical solution is just to define the key Z > > in dired and hook it to my own function that parse file name to > > determine to compress or uncompress than call shell-command with > > gzip... modding dired elisp file seems will take much longer ... > > > thanks for any thoughts. > > > =C2=A0Xah > > =E2=88=91http://xahlee.org/ > > > =E2=98=84