nld and noft Manual

noft Options
nld and noft Manual520384-003
5-4
! (Exclamation Point)
! (Exclamation Point)
The ! (exclamation point) option executes a previously executed command.
history-number
is the history-buffer number of the command to be re-executed.
-history-offset
is a negative offset from the command that history-number represents. The
immediately preceding command is -1.
text
is a string of characters. If you provide text instead of history-number or
-history-offset, the ! option executes the most recently executed command
that begins with the string text.
The history-buffer number of the command specified by history-number,
-history-offset, or text must be less than or equal to the number of commands
in the history buffer, which is determined by SET HISTORYBUFFER (see SET on
page 5-42, particularly Example 5-8 on page 5-19). The default size of the history
buffer is 50 commands.
If you do not specify history-number, -history-offset, or text, the ! option
executes the previous command.
Note. This option works only in an interactive session.
! [ history-number | -history-offset | text ]