Both shell files refuse to run on Linux.
ArchLinux error: "bash: ./run64.sh: cannot execute: required file not found".
Ubuntu 22.04 error: "-bash: ./run64.sh: /bin/sh^M: bad interpreter: No such file or directory"
This issues is caused by Windows line endings \r\n used in both shell files.
In Linux, an end of a line is indicated with \n while the \r character is a part of command line. This means the very first line (the shebang) tells the OS to execute the script with /bin/sh\r instead of /bin/sh. Since /bin/sh\r is not a valid executable, execution fails.
Both scripts need to have Linux line endings.
Both shell files refuse to run on Linux.
ArchLinux error: "bash: ./run64.sh: cannot execute: required file not found".
Ubuntu 22.04 error: "-bash: ./run64.sh: /bin/sh^M: bad interpreter: No such file or directory"
This issues is caused by Windows line endings
\r\nused in both shell files.In Linux, an end of a line is indicated with
\nwhile the\rcharacter is a part of command line. This means the very first line (the shebang) tells the OS to execute the script with/bin/sh\rinstead of/bin/sh. Since/bin/sh\ris not a valid executable, execution fails.Both scripts need to have Linux line endings.