Is it possible to find out the full path to the script that is currently executing in KornShell (ksh)?
i.e. if my script is in /opt/scripts/myscript.ksh
/opt/scripts/myscript.ksh
Using $_ provides the last command.
>source my_script
Works if I issue the command twice:
>source my_script >source my_script
If I use a different sequence of commands:
>who >source my_script
The $_ variable returns "who"