Problem in executable file mechanism

luke.kendall@cisra.canon.com.au luke.kendall@cisra.canon.com.au
Wed Apr 16 03:03:00 GMT 2003


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/




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



More information about the Cygwin mailing list