Use declare
to see what functions are active for your shell. The -F
flag lists them and the -f
flag lists and shows how they are defined:
# function myfunc(){ echo "foo: $@"; }
# myfunc bar
foo: bar
# declare -f
declare -f myfunc
# declare -F
myfunc ()
{
echo "foo: $@"
}