$isalias » History » Version 1
Per Amundsen, 03/02/2014 12:20 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$isalias(name)* |
||
4 | |||
5 | Returns $true if the specified name is an alias command that exists in your aliases or scripts. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | name - The alias to find. |
||
10 | |||
11 | *Properties* |
||
12 | |||
13 | .fname - Returns the path and filename of the found alias |
||
14 | .alias - Returns the first line of the alias. |
||
15 | |||
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | alias -l test2 { echo -ag Hello World } |
||
20 | alias test { |
||
21 | ;Returns $true. |
||
22 | /echo -ag $isalias(test2) |
||
23 | |||
24 | ;Returns "-l test2 { echo -ag Hello World }" |
||
25 | /echo -ag $isalias(test2).alias |
||
26 | |||
27 | } |
||
28 | </pre> |