am a new Linux server user. I cannot figure out how to find out the source code of a bash function named foo() which is defined. How to locate the file where a bash function is defined and how to view the source code of foo() from shell prompt itself?
How do I determine if a function called foo() is already defined in a bash script or not? If a function called foo() is defined just call it or show an error message?