리눅스 set -ax

1 개요[ | ]

리눅스 set -ax
parent.sh
#!/bin/bash
set -ax
syntaxhighlight child1.sh
./child2.sh
child1.sh
#!/bin/bash
foo=hello
bar=world
echo -- child1 end...
child2.sh
#!/bin/bash
echo -- child2 start...
echo foo=[$foo]
echo bar=[$bar]
실행결과
$ ./parent.sh 
+ syntaxhighlight child1.sh
++ foo=hello
++ bar=world
++ echo child1 end...
child1 end...
+ ./child2.sh
-- child2 start...
foo=[hello]
bar=[world]

2 같이 보기[ | ]

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