How to determine function name from inside a function May 20, 2023 by Tarik You can use ${FUNCNAME[0]} in bash to get the function name.