delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | RE: What kind of executable is zcat? Crashes from cmd.exe |
Date: | Thu, 12 Feb 2004 12:22:59 -0800 |
Message-ID: | <407DF7D68DD30440B5CEB70ED234D1CF04985444@excuswa100.americas.unity> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Bakken, Luke" <Luke DOT Bakken AT getronics DOT com> |
To: | <cygwin AT cygwin DOT com> |
X-OriginalArrivalTime: | 12 Feb 2004 20:23:01.0145 (UTC) FILETIME=[02DDA090:01C3F1A6] |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id i1CKNR13023272 |
> Jamshid Afshar wrote: > > I just installed Cygwin. What kind of executable is > zcat.exe? It doesn't > > show up when I "dir c:\cygwin\bin\zc*" (only zcmp), but I > see it's 19 > > bytes in Explorer. It works fine within bash, but I want > UNIX utilities I > > can use in the regular Windows Command Prompt. > > $ ls -l zcat.exe > lrwxrwxrwx 1 rcampbel Users 19 Jan 6 17:06 > zcat.exe -> gzip.exe > > As you can see from the ls output, it's a symbolic link > (doesn't work in > cmd). You can still call gunzip -c (or whatever). I had a similar problem when trying to use gunzip from a cmd prompt outside of a cygwin shell - I was getting illegal ntvdm CPU errors. The fix is to replace the softlink with a hard link: $ cd /bin /bin $ ls -l zcat* lrwxrwxrwx 1 lukeb Users 19 Sep 21 16:29 zcat.exe -> gzip.exe /bin $ rm zcat.exe /bin $ ln gzip.exe zcat.exe /bin $ ls -li zcat* gzip* gunzip* 1125899906888251 -rwxr-xr-x+ 3 lukeb Users 62976 Jul 23 2003 gunzip.exe 1125899906888251 -rwxr-xr-x+ 3 lukeb Users 62976 Jul 23 2003 gzip.exe 1125899906888251 -rwxr-xr-x+ 3 lukeb Users 62976 Jul 23 2003 zcat.exe I would suggest doing the same with any other cygwin executable that is a symbolic link that you intend to use "outside" cygwin. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |