> ksh ./myKshScript
> ./myKshScript

> . ./myKshScript"

Hi Folks,
When running a ksh script using a dot instead of /bin/ksh, $0 is set to -ksh. Is there another way to get the filename? Eg. Syntax errors are reported with the full filename so the information must be stored somewhere.

A follow up question, does anyone know how to access the ksh call stack? I'm working on debugging tools.