Project

General

Profile

Actions

$isalias » History » Revision 2

« Previous | Revision 2/9 (diff) | Next »
Per Amundsen, 03/02/2014 12:20 PM


Added in 1.9.0

$isalias(name)

Returns $true if the specified name is an alias command that exists in your aliases or scripts.

Parameters

name - The alias to find.

Properties

.fname - Returns the path and filename of the found alias
.alias - Returns the first line of the alias.

Example

alias -l test2 { echo -ag Hello World }
alias test {
  ;Returns $true.
  /echo -ag $isalias(test2)

  ;Returns "-l test2 { echo -ag Hello World }" 
  /echo -ag $isalias(test2).alias
}

Updated by Per Amundsen over 10 years ago · 2 revisions

Also available in: PDF HTML TXT