$lscriptline - 25/06/05 06:41 AM
I would like something that returns the last script line, that can be used with Goto and in aliases called by scripts. It should return the line that put you where you are now, like:
That would return 3, because the GoTo command is on line 3.
An example with callin aliases:
This would return 2, because someotheralias was called on line 2.
Code:
somealias { command goto next :next return $lscriptline }
That would return 3, because the GoTo command is on line 3.
An example with callin aliases:
Code:
somealias { someotheralias } someotheralias { return $lscriptline }
This would return 2, because someotheralias was called on line 2.