Skip to content

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

Description

@cherio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions