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: No such file, but it's right there


On Mon, Nov 18, 2002 at 12:35:57AM -0000, Max Bowsher wrote:
>Randall R Schulz <rrschulz@cris.com> wrote:
>>Cygwin follows the Windows convention of using file file name suffix
>>".exe" for its binary executable files.  While Cygwin will locate and
>>execute files files given only the base name (sans suffix), other uses
>>("cat," "less," or more apropos "nm," "size" or "file") demand the full
>>file name, including the ".exe" suffix.
>
>Actually, the significant point seems to be that the files are being
>accessed via a mount with no underlying directory.

No, sorry.  Cygwin's stat function will find a file with a .exe
extension.  Cygwin's open function won't.  It has been this way for four
or five years.  It has nothing to do with the mount command.

So, if you have a file called foo.exe 'ls -l foo' will work but
'cat foo.exe' won't work.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]