TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-76
HISTORY Command
HISTORY Command
Use the HISTORY command to display the most recently executed command lines.
num
is the number of commands to display. By default, num is 10.
Considerations
The HISTORY command displays the specified number of lines in the history
buffer. The history buffer is 1000 characters long and contains zero or more lines.
Each line stored in the history buffer requires as many bytes as the line contains,
plus one extra byte.
The lines TACL retains in its history buffer are those nonblank lines you type in, not
the lines TACL executes.
Each line that an FC command or exclamation point command causes to be
repeated becomes a new line in the history buffer, just as if you had typed the
command again.
If you type a line too long to fit into the history buffer, TACL executes the line
properly but omits it from the buffer.
If the number is larger than the history buffer, TACL returns the number of
available lines.
If the number is too large, TACL returns an error.
Example
This example illustrates how to list the last five command lines. TACL lists the previous
five lines, including the HISTORY command:
32> HISTORY 5
28> ENV
29> FILEINFO BOOK*.SEC
30> SET DEFINE CLASS MAP
31> SET DEFINE FILE RSLTS
32> HISTORY 5
33>
HISTORY [ num ]