0
I'm absolutely new in CYGWIN and Bash in total, so, I guess that there is an answer somewhere in a documentation, but I'm not succeeded finding it.
I have two files coexisting in a directory: file and file.exe. If I call file (using CYGWIN terminal), it gives me an error "cannot execute binary file: Exec format error" (because it accesses the file), but if I call file.exe, it works well. I've found in the manual that "the shell script has precedence and is selected for execution of file", but it seemes that it is wrong in my situation. So, what should I do to excecute file.exe calling file in terminal? Thanks in advance.
p.s. ./file also doesn't work; ./file.exe works well
Thank you for your answer! Yes, I tried to change its attribute by
chmod +x file.exe
but nothing has changed. =( – Megabrukman – 2018-11-12T16:34:32.9331The problem is the presence of
file
. Setting the attributes of "file.exe" won't help. Cygwin will not launch "file.exe" unless you execute "file.exe". It will execute "file" if you type "file". – harrymc – 2018-11-12T19:28:26.307