$BASH_SOURCE gives the correct answer when sourcing the script. This however includes the path so to get the scripts filename only, use: $( ...
確定! 回上一頁