I'm very befuddled by this error and don't even know what to google for:
Failure - Executing a script with:
./test.sh bash: ./test.sh: "Permission denied"
Works - while these apporeaches work:
sh ./test.sh Works bash ./test.sh Works
The test script:
cat test.sh #!/bin/bash echo "Works"
With all execute rights:
chmod 777 test.sh ls -als test.sh 4 -rwxrwxrwx 1 edo edo 27 13. Feb 10:41 test.sh
I'm quite clueless to why this is happening as it doesn't make any sense to me and I have no clue what words to Google for to properly describe the behavior..