.A Command

The .A command appends text to the end of the statement at the top of the stack. This command is useful for expanding the last statement you entered without having to retype it. Re-execute statement 1 by typing .X or .X1.

Format

.A text

Parameter(s)

text

Additional text to be appended to statement 1. It must be separated from .A by a space.

The .A command does not add a new statement to the stack; it modifies the original statement 1 by adding characters to the end of the line. It does not insert leading spaces between the last character in statement 1 and the new text you are appending. To include a leading space, type two spaces between .A and text.

Appending Text to Stack Statements

This example first displays stack statement 1, then appends the word CITY to it:

>.L1

001 SORT CUSTOMERS BY LAST-NAME LAST-NAME

>.A  CITY

SORT CUSTOMERS BY LAST-NAME LAST-NAME CITY

The .A command displays the new statement 1 after appending the specified text to it.

Note that the .A command line included an explicit leading space between NAME (the last word in statement 1) and CITY (the beginning of the appended text).

See Also

TCL Stacker Command Reference