shell관련 set -e, set -x

set -e : 구문 검사 후 실패할 경우 스크립트 종료

set -x : 모든 명령을 화면에 출력(Dos로 보면 @echo on)

 

http://julio.meroh.net/2010/01/set-e-and-set-x.html

 

set -e and set -x - Julio Merino

set -x: If you are writing simple scripts that are meant to, well, script the execution of a few tasks (as opposed of being full-flown programs written in shell), set this flag to trace the execution of all commands. This will make the interpreter print ea

julio.meroh.net

http://julio.meroh.net/2018/03/shell-readability-strict-mode.html

 

Shell readability: strict mode - Julio Merino

Use the Unofficial Bash Strict Mode (Unless You Looove Debugging): While writing this article, I came across this one. At first sight I thought: “hey, this covers exactly what I wanted to describe so no need for me to post!”. But I changed my mind. First,

julio.meroh.net

 

+ Recent posts