"리눅스 set -x"의 두 판 사이의 차이

34번째 줄: 34번째 줄:
* [[리눅스 set -a]]
* [[리눅스 set -a]]
* [[리눅스 set -e]]
* [[리눅스 set -e]]
* [[리눅스 set -ax]]
* [[리눅스 bash/sh 디버깅 sh -x]]
* [[리눅스 bash/sh 디버깅 sh -x]]


[[분류: Bash]]
[[분류: Bash]]

2018년 11월 15일 (목) 21:52 판

1 개요

set -x

2 실습

root@zetawiki:~# cat a.sh
echo hello
echo world
root@zetawiki:~# sh a.sh
hello
world
→ 일반적인 수행 (명령어가 노출되지 않음)
root@zetawiki:~# cat b.sh
set -x
echo hello
echo world
root@zetawiki:~# sh b.sh
+ echo hello
hello
+ echo world
world
→ 수행하는 명령어를 보여준 후 실행함

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}