Jump to content

Bash: Who defined that shell function?

From FVue

Problem

How do I find out where a particular bash function, for example foo, is defined?

Solution

shopt -s extdebug
declare -F foo