delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/28/09:08:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: egb AT us DOT ibm DOT com
X-Lotus-FromDomain: IBMUS
To: cygwin AT sources DOT redhat DOT com
Message-ID: <85256949.00481417.00@d54mta04.raleigh.ibm.com>
Date: Mon, 28 Aug 2000 09:07:14 -0400
Subject: stat(2)
Mime-Version: 1.0


The stat "system call" in cygwin searches for the file named in the input
parameters. If it doesn't find it, it appends ".exe" to the name and
searches for that
file. If it find the "abc.exe" version of "abc". it silently returns
information about
a filename ("abc.exe") which was not specified in the input parameters.

Can anyone explain this behavior? Why, then, doesn't it also search for
".bat", ".cmd", and everything
else in the PATHEXT environment variable?

Ed Bradford

Your Windows 2000 Arborist
T/L 589-4410; Outside: 1-919-993-4410
egb AT us DOT ibm DOT com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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