Quantcast
Viewing all articles
Browse latest Browse all 13

Answer by mxcl for What does 'set -e' mean in a Bash script?

It stops execution of a script if a command fails.

A notable exception is an if statement. eg:

set -efalseecho never executed
set -eif false; then  echo never executedfiecho executedfalseecho never executed

Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>