$ 0와 BASH_SOURCE 중에서 선택 하나를 선택할 어떻게 않습니다 "$0"및"${BASH_SOURCE[0]}" GNU 의이 설명 은 저에게 매우 도움이되지 않습니다. BASH_SOURCE An array variable whose members are the source filenames where the corresponding shell function names in the FUNCNAME array variable are defined. The shell function ${FUNCNAME[$i]} is defined in the file ${BASH_SOURCE[$i]} and called from ${BASH_SOURCE[$i+1]} 참고 : POSIX 호환 솔루션의 경우이 답변을 참조..