Caché MultiValue Commands Reference
MultiValue Command Stack Commands and Keystrokes
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

This chapter provides an alphabetical listing of the command stack commands supported by the Caché MultiValue Shell. Command stack commands begin with a period (.) character. These allow you to edit and execute the command lines on the command line stack. These command names are not case-sensitive.

This chapter also describes the keyboard keystrokes supported by the Caché MultiValue Shell.
.A
The .A command appends text to a command line.
.A[n] text
The command .A (or .A1) appends text to the current command line. The command .An appends text to a command line earlier in the command stack, with the integer n specifying how many previous line to count back. Thus, .A4 appends text to the command line issued four lines ago.
The text is appended exactly as specified. Thus a quoted string is appended with the quote characters.
.C
The .C command changes command line text.
.C[n] /oldtext/newtext
The command .C (or .C1) replaces the first instance of oldtext with newtext in the current command line. The command .Cn replaces text in a command line earlier in the command stack, with the integer n specifying how many previous line to count back. Thus, .C4 replaces oldtext with newtext in the command line issued four lines ago.
Text search is case-sensitive. To delete oldtext, specify .C /oldtext/. To replace oldtext with a blank space, specify .C /oldtext/ /.
.D
The .D command deletes one or more command lines from the command stack.
.D[n[-m]]
The command .D (or .D1) deletes the most recent command line from the command stack. The command .Dn, with n specified as an integer, deletes the n most recent command line from the command stack. The command .Dn-m, with n and m specified as integers, deletes the range of lines between n and m (inclusive).
.L
The .L command lists one or more lines from the command line stack.
.L[n]
The command .L lists all of the command lines in the command line stack. The command .L1 lists the most recent command line in the command line stack. The command .Ln, with n specified as an integer, lists the n most recent command lines in the command line stack. If n is larger than the number of lines on the stack, all lines on the stack are returned.
.U
The .U command converts one or more command lines to uppercase letters.
.U[n[-m]]
The command .U (or .U1) converts the most recent command line to uppercase letters. The command .Un, with n specified as an integer, converts the n most recent command line to uppercase. The command .Un-m, with n and m specified as integers, converts the range of lines between n and m (inclusive) to uppercase letters. This range begins with the n command line and ends with the m command line. Therefore, to convert the last three command line commands and return them in the original order, you would specify .U3–1.
.X
The .X command executes one or more command lines.
.X[n[-m]]
The command .X (or .X1) retrieves and executes the most recent command line. The command .Xn retrieves and executes a command line earlier in the command stack, with the integer n specifying how many previous line to count back. Thus, .X4 executes the command line issued four lines ago. Note that issuing .X or .X1 does not increment the command line count, whereas issuing .Xn (where n is >= 2) does increment the command line count by 1. The command .Xn-m, with n and m specified as integers, executes the range of lines between n and m (inclusive), beginning with the n command line and ending with the m command line. Therefore, to execute the last three command line commands in the original order, you would specify .X3–1.
.?
The .? command displays help text for the command stack commands.
.?
Keystrokes
The Caché MultiValue Shell supports the following terminal keystrokes: