$calias » History » Version 1
Per Amundsen, 06/26/2016 05:56 PM
| 1 | 1 | Per Amundsen | _Added in 2.4_ |
|---|---|---|---|
| 2 | |||
| 3 | *$calias* |
||
| 4 | |||
| 5 | Returns the calling alias for the current script, |
||
| 6 | |||
| 7 | <pre> |
||
| 8 | alias test1 { |
||
| 9 | echo -ag Calling alias is $calias |
||
| 10 | noop $test2 |
||
| 11 | } |
||
| 12 | |||
| 13 | alias test2 { |
||
| 14 | echo -ag Calling alias is still $calias |
||
| 15 | noop $test3 |
||
| 16 | } |
||
| 17 | |||
| 18 | alias test3 { |
||
| 19 | echo -ag Calling alias is still $calias |
||
| 20 | } |
||
| 21 | </pre> |