Skip to main content
Previous sectionNext section

MultiValue Command Stack Commands and Keystrokes

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:

  • Left Arrow / Right Arrow keys: enable you to move left or right in the current command line.

  • Home / End keys: enable you to move to the beginning or the end of the current command line.

  • Up Arrow / Down Arrow keys: enable you to move backwards and forwards through the command line history in the command line stack.

  • Page Up / Page Down keys: same as Up Arrow / Down Arrow keys.

  • Insert key / Ctrl-O: enable you to toggle between text insert mode (the default) and text overwrite mode in the current command line. You can use either the Insert key or Ctrl-O to toggle between these modes within a command line. The MultiValue Shell defaults to insert mode for each new command line.

  • Tab key: inserts a single space.

  • Escape characters are not included in a command line.