An administrator writes a script that uses the 'set -e' option at the top. What is the primary effect of this option?
C is correct. 'set -e' makes the script exit on any non-zero exit status.
Why this answer
Option C is correct because 'set -e' causes the shell to exit immediately if any command exits with a non-zero status, which helps in catching errors early. Option A is wrong because 'set -e' does not affect variable expansion. Option B is wrong because it is for 'set -u'.
Option D is wrong because it is for 'set -x'.