Virtual Hometerm Subsystem (VHS) Manual (G06.24+, H06.04+, J06.03+)

Command Descriptions
Virtual Hometerm Subsystem (VHS) Manual429311-002
7-3
Question Mark (?) Command
Considerations
If you use an exclamation point (!) alone, the previous command is re-executed.
The exclamation point (!) 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 1024 bytes in length.)
The exclamation point (!) command does not increment the command-line number
in VHSCI prompt. The display of command line numbers in the prompt is controlled
by the SETPROMPT command.
The exclamation point (!) command can be issued only by an interactive user.
The exclamation point (!) command cannot be followed by another command on
the same line.
Examples
Question Mark (?) Command
The question mark (?) command causes a previous command line to be displayed.
number
if positive, is the line number of the command line to be displayed. If negative, the
current command-line number minus number is the line number of the command
line to be displayed.
-> INFO PROCESS $VHS
-> STATUS PROCESS $VHS
.
.
.
-> !-2 {Re-execute two commands ago }
INFO PROCESS $VHS
-> !STAT {Re-execute the most recent command}
-> STATUS PROCESS $VHS {beginning with "STAT" }
.
.
.
-> ! {Re-execute the most recent command}
STATUS PROCESS $VHS
.
.
.
? [ [ - ] number ]
[ character-string ]