delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/15/08:57:03

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: <42B0260C.8050306@scytek.de>
Date: Wed, 15 Jun 2005 08:58:52 -0400
From: Volker Quetschke <quetschke AT scytek DOT de>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: tcsh doesn't find commands that end with .exe
References: <42ADA78B DOT 9040300 AT scytek DOT de> <20050613160117 DOT GC3522 AT calimero DOT vinschen DOT de> <42ADAFC9 DOT 9090401 AT scytek DOT de> <20050613163537 DOT GA11778 AT calimero DOT vinschen DOT de> <42AE20F2 DOT 4000409 AT scytek DOT de> <20050614180215 DOT GU3522 AT calimero DOT vinschen DOT de> <42AF3C72 DOT 2060009 AT scytek DOT de> <20050615074433 DOT GV3522 AT calimero DOT vinschen DOT de>
In-Reply-To: <20050615074433.GV3522@calimero.vinschen.de>
X-IsSubscribed: yes

--------------enig9B2FCECF62542F793D75F2FD
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Corinna Vinschen wrote:
>>Unpatched standard cygwin tcsh:
>>[quetschke AT Macros ~]$ which gcc.exe
>>/usr/bin/gcc.exe
>>[quetschke AT Macros ~]$ which whoami.exe
>>whoami.exe: Command not found.
>>[quetschke AT Macros ~]$ which whoami
>>/usr/bin/whoami
> 
> Doesn't happen with the patched tcsh.

Yes, sure because now the .exe versions are also in the hash. There
are two szenarios:
1. Everything is well (only a few files in dir):
    blah and blah.exe are in the path hash.
2. Something is wrong (many files in dir):
    blah* is not hashed and therefore blah, blah.exe, BLAH, BLAH.EXE,
    BlAh.ExE, etc. are found. (You can force this by using unhash.)

IMHO your patch hides the problem with the broken directory hash
and I thought I should report to the tcsh people that the path
hashing algorithm might have a problem with many files.

Volker


-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

--------------enig9B2FCECF62542F793D75F2FD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCsCYMPTXJup+KeF0RAsuWAJ9nyOMXlnrZV7ondlzCFn+g5qxL4gCffbv0
7IMdlMKGQN65ddV7YCqGWzU=
=7E4L
-----END PGP SIGNATURE-----

--------------enig9B2FCECF62542F793D75F2FD--

- Raw text -


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