delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/17/19:46: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
Date: Sun, 17 Nov 2002 19:46:51 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: No such file, but it's right there
Message-ID: <20021118004651.GA2395@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1037497099 DOT 24907 DOT ezmlm AT cygwin DOT com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20021117161546 DOT 00fd6b08 AT pop3 DOT cris DOT com> <000d01c28e9a$764b0150$78d96f83 AT pomello>
Mime-Version: 1.0
In-Reply-To: <000d01c28e9a$764b0150$78d96f83@pomello>
User-Agent: Mutt/1.5.1i

On Mon, Nov 18, 2002 at 12:35:57AM -0000, Max Bowsher wrote:
>Randall R Schulz <rrschulz AT cris DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019