Inconsistence on file operation when the name already exists with exe extension

Andrey Repin
Sun Jul 8 23:20:00 GMT 2012

Greetings, Aaron Schneider!

> --On an empty dir--:

> touch file.exe

> touch file.img

> touch file doesn't create the corresponding file.

> --Then--

> touch helpp

> cp helpp file

> cp: can't create regular file «file»: File exists

> On rm file it removes the file.exe instead of saying file not found.

> Is this behavior intended?

Yes. For more information, read about Cygwin .exe files handling magic.

> This is not unix like, the filename should be preserved as is

Complain to Microsoft...

Andrey Repin ( 09.07.2012, <03:15>

Sorry for my terrible english...

More information about the Cygwin mailing list