This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 06/08/2010 08:43 AM, Steven Collins wrote: > directory as can be demonstrated by a simple "touch foo foo.exe" > command. Both files will be created. Arguably, both should NOT be created, for the same reasons. That is, it is probably worth a patch to make open("foo.exe",O_CREAT|O_EXCL,mode) fail if "foo" exists, and open("foo.exe",O_CREAT,mode) delete "foo" if it exists, effectively renaming "foo" to "foo.exe". > which the magic gets applied and "foo.exe", "foo.bat", You are misunderstanding the magic. It only happens for .exe, and that is because the Unix world is steeped in the tradition of suffix-less executables, but Windows insists on having the .exe suffix for cmd to be able to run an executable. Cygwin goes to various lengths to try to support both, at the expense that you shouldn't have both exist in the same directory. .bat has nothing to do with .exe magic. > There certainly appear to be > inconsistencies within the tools. Yes, and as they get pointed out, we try to make them more consistent. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |