delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/19/08:41:16

X-Spam-Check-By: sourceware.org
X-VirusChecked: Checked
X-Env-Sender: Oliver DOT Walsh AT ansys DOT com
X-Msg-Ref: server-8.tower-129.messagelabs.com!1153312861!2003560!1
X-StarScan-Version: 5.5.10.7; banners=-,-,-
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: exe handling
Date: Wed, 19 Jul 2006 13:41:00 +0100
Message-ID: <6A5097DB1E5EF64AA1AFBE6736133627C9D42D@harexch.win.ansys.com>
From: "Oliver Walsh" <Oliver DOT Walsh AT ansys DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k6JCfBaL014182


> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
Behalf
> Of Corinna Vinschen
> Sent: 18 July 2006 20:41
> To: cygwin AT cygwin DOT com
> Subject: Re: exe handling
> 
> 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/

Ok, I can't avoid having both files in the same location but I can just
call foo.exe from foo when run from cygwin.

Thanks,
Ollie


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