Difference between revisions of "$script"

From Scriptwiki
Jump to: navigation, search
m (added $scriptdir to also see)
m (forgot category)
Line 10: Line 10:
 
* [[$scriptline]] Returns the current script line.
 
* [[$scriptline]] Returns the current script line.
 
* [[$scriptdir]] Returns the directory the current script is saved.
 
* [[$scriptdir]] Returns the directory the current script is saved.
 +
 +
[[Category:Remote Identifiers]]

Revision as of 21:11, 6 April 2008

Returns the filename of the currently executing remote script.

$script

Example

alias hello {
  echo -ag We're running from script file $script
}

See Also

  • $scriptline Returns the current script line.
  • $scriptdir Returns the directory the current script is saved.