Display statements during function execution
echo on all
echo off all
echo command controls the display (or echoing)
of statements in a function during their execution. Normally, statements
in a function file are not displayed on the screen during execution.
Command echoing is useful for debugging or for demonstrations, allowing
the commands to be viewed as they execute.
echo command behaves in a slightly
different manner for script files and function files. For script files,
the use of
echo is simple; echoing can be either
in which case any script used is affected.
When you turn on echoing for a script or function file, each
line in the file is displayed as it is executed. Since this results
in inefficient execution, use
echo only for debugging.
To avoid confusing syntax, do not use
a function name.