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
'IT' 카테고리의 다른 글
[Mac/Windows] 맥 윈도우 한글 자소 분리 현상 (2) | 2019.05.06 |
---|---|
[자막] 자막 변환 사이트 프로그램 (0) | 2019.04.13 |
[DOS] 도스 command 결과 클립보드로 (0) | 2019.04.13 |
[vscode] visual studio code 한글 (0) | 2019.04.01 |
[SQL] release별 버전 확인을 위한 사이트 (0) | 2019.03.27 |