Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run.sh & run64.sh fail to run #298

Open
cherio opened this issue Aug 9, 2024 · 0 comments
Open

run.sh & run64.sh fail to run #298

cherio opened this issue Aug 9, 2024 · 0 comments

Comments

@cherio
Copy link

cherio commented Aug 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant