Is there a way to view a bash function\'s definition in bash?
For example, say I defined the function foobar
foobar
function foobar { echo
set | sed -n '/^foobar ()/,/^}/p'
This basically prints the lines from your set command starting with the function name foobar () and ending with }