This is the mail archive of the cygwin@cygwin.com 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: Problem in executable file mechanism


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/


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