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