list defined bash functions

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: $@"

Leave a Reply

Your email address will not be published. Required fields are marked *