COMMAND NAME:

        HISTORY

        HISTORY displays a popup menu of the last 30 commands executed.
Selecting any entry with the mouse causes that command to be re-executed.

EXAMPLES:

        HISTORY


ADDITIONAL INFORMATION:

        Only nonblank entries are saved in the history list.

        The history mechanism is also available by three other means:

    I.  Typing a control-B character on the keyboard causes
        the last command saved to reappear on the command line, as if the user
had typed it up to the carriage return. A carriage return entered now
will execute the command. Typing another control-B character will cause
the command line to be replaced with the next previous command.
You can cycle through all 30 commands using this method.
Typing a control-F character causes the history to scan forward.

    II. Entering an exclamation point as the first character
        of a command causes a search of the history list for a matching
command, similar to the Unix C-shell.  Two exclamation points "!!"
represent the contents of the previous nonblank command line.
An exclamation point followed by a number represents the contents of the
indicated nonblank command (with commands numbered from one).
A negative number is treated relative to the current number;
i.e. "!-1" is equivalent to "!!".
The history sequence "!?match?" will execute the command
containing the string "match" in this case.  No magic characters
are recognized in the matching string, and the search is case sensitive.
"!$" will substitute the last word of the previous command.
Any other nonblank character(s) will cause the history list to be
searched for the last command which began with the character(s),
again case sensitive.

        History sequences can be followed (immediately only) by a modifier
sequence, indicated by a colon ":".  Multiple modifiers are allowed,
but a colon must precede each modifier.  The modifiers supported are:

                "s" for replace string
                "g" for global prefix for "s"
                "p" for print but don't execute
                "$" for the last word
                "^" for the second word

        The syntax for the "s" modifier is ":s/old/newstring/".
In this case the string "old" will be replaced by the string
"newstring" in the indicated command; it is an error if "old" cannot be found.
The "g" modifier must precede the "s" modifier
for the replacement to be global; e.g. ":g:s/left/right".
By using the modifiers, the results of the sequence "!$" can
also be obtained by the sequence "!!:$" (without quotation marks).
The "p" modifier is useful for examining what the modified command
would be without executing it.

   III. A line which begins with a hat "^" character is assumed to be
        shorthand for a special history substitution sequence.
The syntax must be: "^oldsequence^newsequence^"
and is equivalent to "!!:s/oldsequence/newsequence/".
