Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2010
ksh: how do i find filename if $0=-ksh
> . ./myKshScript"
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.