"typeset -ft function" (turn on tracing for the named function) was specified, but KornShell mode wasn't enabled.
Don't specify "typeset &ndashft", or enable KornShell mode with "set –o korn".