19.9. Checking the loaded functions

To make sure that the functions have been sourced, use the set command, which will display all the loaded functions available to the shell.

$ set 
USER=dave 
findit=() 
{
if [ $# -lt 1 ]; then 
  echo "usage :findit file"; 
  return 1; 
fi; 
find / -name $1 -print 
} 
...

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.