delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/22/11:37:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-ID: <435A5C37.4080807@byu.net>
Date: Sat, 22 Oct 2005 09:35:19 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Arend-Jan Westhoff <jpmcyafvmhsl AT spammotel DOT com>
CC: Lennart Borgman <lennart DOT borgman DOT 073 AT student DOT lu DOT se>, cygwin AT cygwin DOT com
Subject: Re: info bash - Bash Features: No such file or directory
References: <4356CB4C DOT 4030907 AT student DOT lu DOT se> <4356CB4C DOT 4030907 AT student DOT lu DOT se> <20051022130240 DOT AFBB717B4AA AT postduif DOT warande DOT net>
In-Reply-To: <20051022130240.AFBB717B4AA@postduif.warande.net>
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Arend-Jan Westhoff on 10/22/2005 7:02 AM:
>>It works for me.  You'll have to help by giving me a better formula for
>>reproducing the problem.  What does "info -w bash" print?  Also, could you
>>please follow the problem-reporting directions below, and attach
>> cygcheck.out?
> 
> 
> I can reproduce the problem.

I don't know if you are reproducing the same problem as the OP, since the
OP didn't exactly print what error message he was getting, but you
certainly reproduced a problem.

>  	info -w bash
> produces:
>  	gunzip: stdin: invalid compressed data--crc error
> 
>  	gunzip: stdin: invalid compressed data--length error
>  	/usr/share/info/bash.info.gz

> E:\cygwin                          /                         system
textmode
> E:\cygwin/bin                      /usr/bin                  system
textmode
> E:\cygwin/lib                      /usr/lib                  system
textmode
> E:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
> .                                  /cygdrive                 system
textmode,cygdrive
>


This is probably because you've mounted / as textmode.  I don't know if it
is a bug in info or in gunzip for not opening files in binary even when
they live in a textmode directory, but if you would use a binary mount,
your problem should go away.

> When run from cmd or bash.
> 
> Whereas:
>  	7z t bash.info.gz

7z is not a cygwin program (although I have built it for cygwin, and may
consider packaging it since I already package tar).

> 	gzip -tv bash.info.gz
> Produces:
> 	bash.info.gz:    OK
> When run from cmd or bash.
> 
> But running:
>  	gunzip
> Or:
>  	gunzip -tv bash.info.gz
> from a cmd shell. Brings up a message box titled:
>  	16 bit MS-DOS Subsystem
> with contents:
>  	... - gunzip
>  	The NTVDM CPU has encountered an illegal instruction.

That would be because gunzip is a symlink, and cmd.com does not know how
to run symlinks.  You need a cygwin shell to exec a cygwin symlink.  (Hmm,
maybe that is related to why cmd.com is reporting an error for info -w
bash, since info is apparently trying to use gunzip rather than gzip -d).

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDWlw384KuGfSFAYARAl5AAKCbIfWo/gFgtg2FGtKOYh5JXNIChwCfZ1Ts
ODp6AzN0llzijuS6UueRWL4=
=hc1C
-----END PGP SIGNATURE-----

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019