3
выбор между $ 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]}
120
bash