This is the mail archive of the
mailing list for the Cygwin project.
RE: exe handling
- From: "Oliver Walsh" <Oliver dot Walsh at ansys dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 19 Jul 2006 13:41:00 +0100
- Subject: RE: exe handling
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com] On
> Of Corinna Vinschen
> Sent: 18 July 2006 20:41
> To: firstname.lastname@example.org
> 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
> > 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
> > myprog."
> > This was the case in my previous installation (cygwin 1.5.19-4) but
> > opposite seems to be the case in the latest cygwin dll (1.5.20-1).
> > causing a lot of problem for me since for many commands I have an
> > 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
> "foo" takes precedence over "foo.exe" in case of practically every
> 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
> "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 Vinschen Please, send mails regarding Cygwin
> 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html