I am trying to execute a .sh
file with Cygwin on Windows 7, and I'm getting an error cannot execute binary file
.
Here is what I wrote in the Cygwin command prompt window:
$ bash cygpath --unix C:\Users\\MyName\\Documents\\MyProject\\dygraphsMaster\\generate-combined.sh
This was the result:
/usr/bin/cygpath: /usr/bin/cygpath: cannot execute binary file
Enclose your Windows path with double quotes (
"
) and your entirecygpath
command with backticks (`
).My example:
Running the above: