The Linux shell if does not exit the current process due to command failure
set -e if haha; Then echo 1 else echo 0 fi The result is that even if you set -e, the current shell process will not exit because if ignores the execution state contained within itCopy the code
Refer to the url
- Tldp.org/LDP/abs/htm…