unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Will Willis <will.willis@gmail.com>
To: Xah Lee <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacsW32 can't find gunzip
Date: Sun, 12 Jul 2009 22:58:17 -0500	[thread overview]
Message-ID: <6ee1e6090907122058s71d7be45sb9d0df1de39868ae@mail.gmail.com> (raw)
In-Reply-To: <e221c6ba-1c4a-43b9-8fbf-de305a409798@q40g2000prh.googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 2557 bytes --]

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 <xahlee@gmail.com> wrote:

> On Jul 12, 12:29 pm, Eli Zaretskii <e...@gnu.org> wrote:
> > > From: Xah Lee <xah...@gmail.com>
> > > 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 (inside
> > Emacs) or in Path (outside Emacs).
> >
> > > I have cygwin installed. “which gunzip” shows “/usr/bin/gunzip”.
> >
> > There's no such thing as "/usr/bin/gunzip" on Windows: every absolute
> > file name must begin with a drive letter or two slashes.  Cygwin 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.  EmacsW32,
> > 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.  But Z invokes
> > 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=${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.
>
>  Xah
> ∑ http://xahlee.org/
>
> ☄
>

[-- Attachment #2: Type: text/html, Size: 3462 bytes --]

  reply	other threads:[~2009-07-13  3:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-12  5:14 emacsW32 can't find gunzip Xah Lee
2009-07-12 14:11 ` despen
2009-07-12 19:29 ` Eli Zaretskii
     [not found] ` <mailman.2378.1247426988.2239.help-gnu-emacs@gnu.org>
2009-07-13  0:58   ` Xah Lee
2009-07-13  3:58     ` Will Willis [this message]
     [not found]     ` <mailman.2399.1247457507.2239.help-gnu-emacs@gnu.org>
2009-07-13  5:19       ` Xah Lee
2009-07-13 18:40     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ee1e6090907122058s71d7be45sb9d0df1de39868ae@mail.gmail.com \
    --to=will.willis@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=xahlee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).