delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/14/13:32:31

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
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT net>
Subject: Re: tcsh can't find executables in Path with "wrong" case
Date: Wed, 14 Sep 2005 10:28:46 -0700
Lines: 52
Message-ID: <dg9mkg$rf6$1@sea.gmane.org>
References: <091420050239 DOT 16069 DOT 43278D5E0005121300003EC522007613940A050E040D0C079D0A AT comcast DOT net> <20050914080418 DOT GR5555 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Thunderbird/1.4 Mnenhy/0.7.2.0
In-Reply-To: <20050914080418.GR5555@calimero.vinschen.de>
X-IsSubscribed: yes

Corinna Vinschen wrote:

> Cygwin tcsh does not share its hashing code with the Win32 version, it
> uses the same code as all other OSes are using.  No other OS is using
> case insensitive hashing, so doesn't Cygwin tcsh.

Thanks for the corrections.

But bash is clearly doing something right, as:

bash-3.00$ ls -l /cygdrive/c/oracle/product/10.1.0/db_1/bin | grep -i 
exp.exe
----------+ 1 shankar        None     405776 Mar  8  2004 EXP.EXE
bash-3.00$ which exp
/cygdrive/c/oracle/product/10.1.0/db_1/bin/exp
bash-3.00$ which exp.exe
/cygdrive/c/oracle/product/10.1.0/db_1/bin/exp.exe
bash-3.00$ which EXP
/cygdrive/c/oracle/product/10.1.0/db_1/bin/EXP
bash-3.00$ which EXP.EXE
/cygdrive/c/oracle/product/10.1.0/db_1/bin/EXP.EXE

And it's able to run the program using any of those 4 unqualified names 
(exp, exp.exe, EXP, EXP.EXE).

But tcsh is lost:

 > which exp
exp: Command not found.
 > which exp.exe
exp.exe: Command not found.
 > which EXP
EXP: Command not found.
 > which EXP.EXE
EXP.EXE: Command not found.

Huh? But:

 > exp
exp: Command not found.
 > exp.exe
exp.exe: Command not found.
 > EXP
... output from Oracle EXP
 > EXP.EXE
... output from Oracle EXP


I wonder if tcsh can pick up some lessons from bash...

Oh, I'm running cygwin1-20050914.dll (on top of cygwin 1.5.18-1), and 
tcsh 6.14.00-5.


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