public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gzip.exe as symlink breaks NTEmacs's jka-compr.el
@ 2002-07-15  2:20 Matt Swift
  2002-07-15  2:26 ` Robert Collins
  0 siblings, 1 reply; 37+ messages in thread
From: Matt Swift @ 2002-07-15  2:20 UTC (permalink / raw)
  To: cygwin


Cygwin package gzip 1.3.3 made the change (from 1.3.2) that /bin/gzip
is a symlink to /bin/gunzip instead of the other way around.  This
change breaks NTEmacs 20.7 and 21.1 on Win2k.  To reproduce, try
evaluating

    (call-process "gzip" nil '(t t) nil "--version")

and Emacs will either freeze until you issue multiple C-g's or Win2k
will popup an "illegal instruction" error dialog.

The common and useful package jka-compr.el (when loaded) by default
invokes `call-process' on "gzip" to uncompress as well as compress
files, rather than "gunzip".

You get similar errors if you invoke `call-process' on any of the
symlinks in /cygwin/bin (e.g., awk.exe -> gawk.exe).

Initial workaround:

        cp /bin/gunzip.exe /usr/local/bin/gzip.exe

(assuming /usr/local/bin is in the PATH (NTEmacs's `exec-path' before
/bin).  Could also change a jka-compr variable to use "gunzip" instead
of "gzip", but that seems less robust (other Emacs-Lisp code probably
calls "gzip" too).

I wasted more than an hour tracking down this bug (not a bug in Cygwin
per se, really, but a change that caused a bug with software very
commonly used with Cygwin).  I didn't look hard, but I found no
comment in the gzip 1.3.3 sources indicating why the change was made
in the symlinks.  Please don't change things that are not broken!



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 37+ messages in thread
* RE: gzip.exe as symlink...
@ 2002-07-15 15:46 Robinow, David
  2002-07-15 15:48 ` Nicholas Wourms
  0 siblings, 1 reply; 37+ messages in thread
From: Robinow, David @ 2002-07-15 15:46 UTC (permalink / raw)
  To: cygwin

> From: Nicholas Wourms [mailto:nwourms@yahoo.com]
> Subject: Re: gzip.exe as symlink...
> --- Jon Cast <jcast@ou.edu> wrote:
> > Robert Collins <robert.collins@syncretize.net> wrote:
> > <snip>
> > > I'd never thought about it - why would anyone care which is the real
> > > file?
> > 
> > If they have to use any program not linked with cygwin1.dll.
> You should be using vi & bash, then you wouldn't have all 
> these "issues".
 bash has nothing to do with this issue.  Use of "vi" will have the same
issue as "emacs". i.e., unless you use a cygwin version it will not
recognize cygwin links.  Some people like to use NTEmacs because it has some
features not available in cygwin XEmacs.  I don't know if there's an NTvi
with features not present in cygwin vi -- I've never used vi.  In fact I've
never met anybody who's used vi more than casually, although I hear it's
popular in some circles.
 In any case there's no need to learn an obscure editor just to read
compressed files.   (setq jka-compr-use-shell t)  will force the compression
code to use a shell (defaults to "sh") instead of "call-process". Use of a
cygwin shell is of course required.
 One could also dispense with the use of links altogether. gzip.exe is only
60K.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 37+ messages in thread
* files and directories distinction:
@ 2002-07-16 18:50 Aldi Kraja
  2002-07-16 19:34 ` Randall R Schulz
  0 siblings, 1 reply; 37+ messages in thread
From: Aldi Kraja @ 2002-07-16 18:50 UTC (permalink / raw)
  To: cygwin mailL

Hi,
How I can set the env to see directories with some / at the end of it. 
Right now everything files and directories look the same (under cygwin) 
when I apply a dir or an ls -l.

TIA,
Aldi

-- 




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 37+ messages in thread
[parent not found: <rrschulz@cris.com>]

end of thread, other threads:[~2003-03-29  0:33 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-15  2:20 gzip.exe as symlink breaks NTEmacs's jka-compr.el Matt Swift
2002-07-15  2:26 ` Robert Collins
2002-07-15  5:36   ` gzip.exe as symlink Max Bowsher
2002-07-15  5:38     ` Robert Collins
2002-07-15 12:41       ` Jon Cast
2002-07-15 14:47         ` Nicholas Wourms
2002-07-15 15:57         ` Robert Collins
2002-07-15 22:22       ` Max Bowsher
2002-07-15  9:21     ` Dario Alcocer
2002-07-15 12:02   ` gzip.exe as symlink breaks NTEmacs's jka-compr.el Jon Cast
2002-07-15 17:05   ` Gerrit P. Haase
2002-07-16  8:59   ` Matt Swift
2002-07-16  9:14     ` David Starks-Browning
2002-07-16  9:17       ` Nicholas Wourms
2002-07-16 10:21     ` Randall R Schulz
2002-07-16 19:27       ` Jon Cast
2002-07-16 19:43         ` Randall R Schulz
2002-07-16 19:51           ` Jon Cast
2002-07-16 20:12             ` Randall R Schulz
2002-07-16 20:14               ` Robert Collins
2002-07-16 23:05                 ` Randall R Schulz
2002-07-16 23:42                   ` Robert Collins
2002-07-17  0:53                     ` Randall R Schulz
2002-07-17  0:58                     ` Christopher Faylor
2002-07-17  0:59                       ` Robert Collins
2002-07-16 20:36               ` Jon Cast
2002-07-16 23:54                 ` Randall R Schulz
2002-07-18 17:08                   ` Jon Cast
2002-07-16 19:49         ` Nicholas Wourms
2002-07-16 19:52           ` Jon Cast
2002-07-15 15:46 gzip.exe as symlink Robinow, David
2002-07-15 15:48 ` Nicholas Wourms
2002-07-16 18:51   ` Jon Cast
2002-07-16 18:50 files and directories distinction: Aldi Kraja
2002-07-16 19:34 ` Randall R Schulz
2002-07-16 19:37   ` Jon Cast
     [not found] <rrschulz@cris.com>
2003-03-29  4:00 ` Mozilla 1.3 built on cygwin? Jeff.Hodges

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).