This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: info bash - Bash Features: No such file or directory


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]