문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:bash [2020/08/27 22:07] kwon37xi [set -e/+e] |
linux:bash [2020/09/05 14:36] kwon37xi [set -e/+e] |
||
---|---|---|---|
줄 198: | 줄 198: | ||
</ | </ | ||
- | ===== set -e/+e ===== | + | |
+ | ===== Safe Shell Script ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | <code sh> | ||
+ | set -euf -o pipefail | ||
+ | </code> | ||
+ | |||
+ | ==== set -e ==== | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | ==== set -u ==== | ||
+ | * unset variable 이 있으면 즉시 종료 | ||
+ | |||
+ | |||
===== 참조 ===== | ===== 참조 ===== | ||
* http:// | * http:// |