Is there a way to view a bash function's definition in bash?
For example, say I defined the function foobar
function foobar {
echo "I'm foobar"
}
Is there any way to later get the code that foobar runs?
$ # non-working pseudocode
$ echo $foobar
echo "I'm foobar