$script
From Scriptwiki
Returns the filename of the currently executing remote script.
$script
[edit]
Example
alias hello { echo -ag We're running from script file $script }
[edit]
See Also
- $scriptline Returns the current script line.
- $scriptdir Returns the directory the current script is saved.
