Source File of Functions
$BASH_SOURCE
contains paths to the source files, where the functions of $FUNCNAME
are defined.
Links
Examples
Display execution position :
|
|
Output:
file: /home/user/file.sh
function: a
executed at: 10
BashSupport Pro is a Bash IDE with support for $BASH_SOURCE – try it now!