SCF Reference Manual for G-Series RVUs (G06.27+)

SCF Commands
SCF Reference Manual for G-Series RVUs520413-005
5-133
! Command
! Command
The ! command causes a previous command line to be reexecuted.
[ - ] number
if the minus sign (-) is omitted, is the line number of the command line to be
reexecuted. If the minus sign is present, the current command-line number minus
number is the line number of the command line to be reexecuted.
character-string
is the first few characters of the command line to be reexecuted. The most recent
command line whose first characters match the string is reexecuted.
Considerations
If you use ! alone, the previous command is reexecuted (! alone is the same as
!-1).
If you specify a negative number and the associated command line is no longer in
the history buffer, you get an error message. (The history buffer of command lines
is 2048 bytes long.)
The ! command does not increment the command-line number in the SCF prompt.
The display of command-line numbers in the prompt is controlled by the
SETPROMPT command (described on page 5-107).
The ! command cannot be issued by a noninteractive user; if encountered, it is
ignored.
The ! command cannot be followed by another command on the same line.
Example
The following command sequence demonstrates the use of the ! command. Notations
are included to the right of the example explaining each use of the ! command.
-> START LINE $L1
-> STATUS LINE $L1
<status display>
-> !-2 Reexecute two commands ago.
-> START LINE $L1
-> !STAT Reexecute the most recent command
-> STATUS LINE $L1 beginning with the characters “STAT”.
<status display>
-> ! Reexecute the most recent command.
-> STATUS LINE $L1
<status display>
! [ - ] number | character-string