Script basics · Question 9 of 12
What happens with bash script.sh if script.sh has no execute permission?
1 answer is correct. Medium Created with AI
Show answer
Answer
- D The script runs anyway because bash only needs to read the file
Explanation
Here bash is the program being started, and script.sh is just a file it reads. The execute permission is only needed for a direct call like ./script.sh.