6

They will only open in a text editor. "Open With" doesn't offer an option to execute. The shell scripts are +x so they should run normally.

As a workaround, I set them to be opened with the terminal emulator, but it is not ideal.

1 Answers1

-1

Even when marked as executable, the system doesn't know what to use to interpret the script. If it is a POSIX shell script, add this line to the very beginning of your script:

#!/bin/sh

Should it require bash or some other shell, use e.g. for bash

#!/bin/bash

The same applies to other executable text files, such as python programs:

#!/usr/bin/python
s3lph
  • 14,644
  • 12
  • 60
  • 83