I corrected the function definitions to use ksh syntax. I set $PATH.