@HISTORY[x[,y[,L|G]]] : Returns a line or word from the command history. (This function will prove most useful in keystroke aliases). x  is the line to retrieve (current line = 0), and y is the specific word (first word = 0) desired within that line. If y is omitted, @HISTORY returns the entire line.


@HISTORY has an optional third argument specifying whether you want the local history list (L) or the global history list (G). @HISTORY will default to the local history list if it exists; otherwise @HISTORY will use the global history list. If you want to specify the history list to use, but not the optional second argument word to return, set y to -1.


Numeric input may be entered in either decimal format (a sequence of 0-9 digits) or in hexadecimal format ("0x" followed by a sequence of 0-F hex digits).