$scriptline » History » Version 1
Per Amundsen, 08/11/2015 06:24 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$scriptline* |
||
| 4 | |||
| 5 | Returns line number in current script. |
||
| 6 | |||
| 7 | *Example* |
||
| 8 | |||
| 9 | <pre> |
||
| 10 | ; Create a alias |
||
| 11 | alias Example { |
||
| 12 | echo -ag Line number for this line is $scriptline |
||
| 13 | } |
||
| 14 | |||
| 15 | ; Call the alias |
||
| 16 | /example |
||
| 17 | </pre> |