EXEC (Interactive)

EXEC forces execution (or re-execution) of a range of lines consisting of TSP commands that have already been entered in the interactive session via keyboard or input file.

EXEC [<first line number>], [<last line number>] ;

Note that in DOS/Win TSP, it is easier to use the up/down arrow keys to select and rerun a single command.

Usage

EXEC varies slightly depending upon the mode in which you are currently operating. In COLLECT mode, EXEC is used to execute the range of lines just collected, and return control to interactive mode. This is considered the standard exit from collect mode (the alternative is to suppress execution with the EXIT command). The whole range will be executed, so line number arguments will be ignored if you supply them. Lines in the range may be EDITed or DELETEd if necessary before EXECuting them.

In interactive mode, up to two arguments may be supplied with the EXEC command. If no argument is supplied, the previous command is re-executed. If only the first line number is supplied, a single line is executed, and if two line numbers are given, their inclusive range is executed. In any case, these lines may be commands that have been previously executed and edited, or commands that were entered but suppressed with an EXIT command in collect mode or at the end of an INPUT file.