variable
Bash FUNCNAME
Array of active function names; index zero identifies the current function during execution.
Formal Syntax & Structure
bash syntaxbash
${FUNCNAME[index]}Return Value
string
Array of active function names; index zero identifies the current function during execution.
Working Example
Example Snippetbash
inner() { printf '%s -> %s\n' "${FUNCNAME[1]}" "${FUNCNAME[0]}"; }outer() { inner; }outer