Jun 282014
Writing more robust shell script
Answer:
You should always start your bash shell script with the line set -eu
The meaning is:
- -e: cause the script to exit if an error
- -u: cause the script to exit if any variable is not set
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Writing more robust shell script
Answer:
You should always start your bash shell script with the line set -eu
The meaning is: