public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Inconsistence on file operation when the name already exists with exe extension
Date: Tue, 10 Jul 2012 16:23:00 -0000	[thread overview]
Message-ID: <4FFC56CF.8090202@cygwin.com> (raw)
In-Reply-To: <CA+sc5mmri4CSe19uaGig_uwzWruOVzpDmm-xDuYsUapph_Ji4w@mail.gmail.com>

On 7/10/2012 11:24 AM, Earnie Boyd wrote:
> On Tue, Jul 10, 2012 at 4:34 AM, Aaron Schneider wrote:
>> You're right that cygwin shell tries to emulate bash, I just twisted things.
>>
>
> You're still wrong.  Cygwin is a POSIX library for Windows.  Bash is a
> shell capable of being built with that POSIX library for use on
> Windows but it isn't an emulation of Bash, it *is* Bash.  Other shells
> available on *nix is also available for Cygwin.
>
>> The problem is that in unix executables don't have extension but they
>> actually do in cygwin so I think that's the root of the problem.
>
>
> They don't need one in Cygwin either; as a matter of fact it was an
> addition to binutils in the second generation of Cygwin that added the
> .exe to the executable because it was more natural for Windows and
> Windows at the time wouldn't execute the binary without the .exe
> extension.
>
>> Probably compiling binaries under cygwin without the exe extension,
>> like  unix, is not an alternative, or is it? Cygwin may detect if it is executable
>> checking if it's PE format; if it is perl script. Just check if file is
>> present in path or run. /file
>
> False.  It is wholly possible, you just have to pass the correct flags
> to the linker process.  Current windows versions since at least XP and
> maybe before would run files that did not contain a .exe extension.

All true.  And all discussed before, as Chris pointed out earlier.
Earnie and others are being very helpful to the OP by reviewing this
stuff again.

It's great to ask questions and explore boundaries but what's better
is to explore new boundaries and ask new questions.  I'd also encourage
that those interested in this area (and I am certainly one) review what's
been said on this subject so far so that any further discussions will be
engaging for all.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2012-07-10 16:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 15:23 notstop
2012-07-09 15:45 ` Christopher Faylor
2012-07-09 16:47   ` Steven Hartland
2012-07-09 17:20   ` Aaron Schneider
2012-07-10  5:38     ` Matt Seitz
2012-07-10  8:45       ` Aaron Schneider
2012-07-10 15:25         ` Earnie Boyd
2012-07-10 16:23           ` Larry Hall (Cygwin) [this message]
2012-07-10 16:54           ` Aaron Schneider
2012-07-10 17:03             ` Christopher Faylor
2012-07-10 18:59             ` Earnie Boyd
2012-07-11  0:50             ` Andrey Repin
  -- strict thread matches above, loose matches on Subject: below --
2012-07-08 20:03 Aaron Schneider
2012-07-08 20:19 ` Aaron Schneider
2012-07-08 20:27   ` marco atzeri
2012-07-08 20:37     ` Aaron Schneider
2012-07-09 12:36       ` Earnie Boyd
2012-07-08 20:49     ` Aaron Schneider
2012-07-08 22:43   ` Buchbinder, Barry (NIH/NIAID) [E]
2012-07-08 23:20   ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFC56CF.8090202@cygwin.com \
    --to=reply-to-list-only-lh@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).