#!/bin/bash myfun(){ echo "This function is $FUNCNAME" } myfun