delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/15/21:23:56

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
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVZGT/28PBelqplQER9Cv9FnsPjmrJmn6MgWaNooHEOSeYI8mH707NFS
Message-ID: <3E9CB059.80905@rfk.com>
Date: Tue, 15 Apr 2003 21:22:33 -0400
From: "Larry Hall (RFK Partners, Inc.)" <lhall AT rfk DOT com>
Reply-To: lhall AT rfk DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: luke DOT kendall AT cisra DOT canon DOT com DOT au
CC: cygwin AT cygwin DOT com
Subject: Re: Problem in executable file mechanism
References: <20030415234616 DOT 2228634C55 AT nevin DOT research DOT canon DOT com DOT au>
In-Reply-To: <20030415234616.2228634C55@nevin.research.canon.com.au>

luke DOT kendall AT cisra DOT canon DOT com DOT au wrote:
> Currently in a Cygwin shell, if you invoke a command called, say,
> xx.exe, and there is a directory of that name earlier in your PATH, the
> xx command will simply fail silently with no error and 0 exit status.
> 
> It appears that the check finds an executable file (the directory),
> considers the search to have finished, and then tries to execute the
> directory and fails.
> 
> This situation can't happen under Unix within a single directory, of
> course, since commands don't have magic concealable (.exe) suffixes. 
> But you can have a directory with the same name as a command, in a
> directory earlier on your PATH, yet the directory is not executed.  But
> again, under Cygwin, this case also makes the command fail.
> 
> The problem does not occur under a DOS shell, either.
> 
> luke
> 
> PS:
> 
> We discovered this here after installing ici version 4, which packages
> up all its modules under a directory called ici, in the same directory
> as ici.exe (to guarantee easy finding of the modules no matter how ici
> is invoked).  http://sourceforge.net/projects/ici/


Hm.  I tried a quick check here on 1.3.22 and couldn't reproduce this.
Can you put together a small test that demonstrates this and/or provide
the output from strace?  Also, please take a look at
<http://cygwin.com/problems.html>.

Thanks,

-- 
Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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