delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/18/15:41:44

X-Spam-Check-By: sourceware.org
Date: Tue, 18 Jul 2006 21:41:21 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: exe handling
Message-ID: <20060718194121.GF27029@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <6A5097DB1E5EF64AA1AFBE6736133627C9D32B AT harexch DOT win DOT ansys DOT com>
Mime-Version: 1.0
In-Reply-To: <6A5097DB1E5EF64AA1AFBE6736133627C9D32B@harexch.win.ansys.com>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Jul 18 18:10, Oliver Walsh wrote:
> Hi,
> 
> Sorry if this has been already been discussed, the only reference I
> could find was a "In scripts suddenly must use perl.exe rather than
> perl" thread.
> 
> http://cygwin.com/cygwin-ug-net/using-specialnames.html#id4729857 states
> the following:
> "If a shell script myprog and a program myprog.exe coexist in a
> directory, the program has precedence and is selected for execution of
> myprog."
> 
> This was the case in my previous installation (cygwin 1.5.19-4) but the
> opposite seems to be the case in the latest cygwin dll (1.5.20-1). It's
> causing a lot of problem for me since for many commands I have an exe
> for windows and a shell wrapper for *nix.
> 
> The change log for 1.5.20-1 mentions changes .exe handling. Is this
> intended behaviour?

Yes.  We just missed to change the docs, as usual.  The behaviour has
been changed since it was inconsistent throughout Cygwin.  Consider that
"foo" takes precedence over "foo.exe" in case of practically every other
system call, just when starting an application it didn't.  So in the
worst (but usual case under <= 1.5.19) you would end up calling
stat("foo") and get the information for file "foo", but then you'd start
"foo.exe", which might not what you want.

The general idea for the future is to avoid having a file "foo" and a
file "foo.exe" in the same directory like pestilence.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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