public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Gerrit P. Haase" <gp@familiehaase.de>
To: "Robert Collins" <robert.collins@syncretize.net>
Cc: cygwin@cygwin.com
Subject: Re: gzip.exe as symlink breaks NTEmacs's jka-compr.el
Date: Mon, 15 Jul 2002 17:05:00 -0000	[thread overview]
Message-ID: <186787088653.20020715235436@familiehaase.de> (raw)
In-Reply-To: <09b601c22bc1$ec09e870$2300a8c0@LAPTOP>

Hallo Robert,

Am Montag, 15. Juli 2002 um 07:39 schriebst du:

> Sounds to me like NTEmacs is broken, and should be able to interpret
> symlinks if it wants to interoperate with cygwin.

No, it is a bug in Windows.  You cannot run symlinks (of course a Windows
style symlink) out of a cmd shell.  I got problems once with awk.exe
which is a symlink to gawk.exe.  He reports this 'bug' in Windows2K
really clear and you guys flamed him for that?

Why not repackage at least gzip and make the two files in question at
least hardlinks instead of symlinks?

IIRC I stumbled over this Windows bug on W2K when building a native
Windows version of openssl which needs awk.  I guess it is no problem
on NT4 and maybe W2K is the only platform where it doesn't work .


> Heck, it could even link with cygwin and get that for free!

> Rob

> ----- Original Message -----
> From: "Matt Swift" <swift@alum.mit.edu>
> To: <cygwin@cygwin.com>
> Sent: Monday, July 15, 2002 3:36 PM
> Subject: gzip.exe as symlink breaks NTEmacs's jka-compr.el


>>
>> 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/

  parent reply	other threads:[~2002-07-15 21:54 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-15  2:20 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 [this message]
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

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

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

  git send-email \
    --in-reply-to=186787088653.20020715235436@familiehaase.de \
    --to=gp@familiehaase.de \
    --cc=cygwin@cygwin.com \
    --cc=robert.collins@syncretize.net \
    /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).