How to list all exported bash functions?
bash, shell
Solution
The following will list all exported functions by name:
declare -x -F
If you want also see the function code use:
declare -x -f
See `help declare` for details.
Problem
In bash, we can export a function in the following way: ``` fname(){ echo "Foo" } export -f fname ``` In this case, function `fname` is exported. But how to list this or other exported functions? AFAIK, command `export` or `export -p` can be used for displaying all the exported/included variables but this does not including functions.