HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
Chapter 3 201
Command Definitions C-E
DO
DO
Allows the user to reexecute any command still retained in the command line history
stack. It also permits the user to edit the command before reexecuting it, but without
having to use the interactive mode of the REDO command. (Native Mode)
Syntax
DO[ CMD=cmdid] [ ;EDIT=editstring]
NOTE This command follows the optional MPE/iX command line syntax. Refer to
"Optional Format for MPE/iX Commands" at the beginning of this chapter.
Parameters
cmdid The command to reexecute. The command may be specified by its relative
or absolute order in the command line history stack, or by name (as a
string), in whole or in part. The default is -1, the most recent command.
MPE/iX detects an error if cmdid does not exist in the command line history
stack. Table 3-4 defines the DO command directives.
Table 3-4 DO Command - Reexecute Directives
editstring String specifying the edit to be performed on cmdid before it is reexecuted.
If you omit editstring, the command is reexecuted immediately, with no
editing performed.
If you specify editstring, it must appear, character for character, and space for space, exactly
as it would if you were using the REDO command in interactive mode.
The editing directives used in editstring are defined in Table 3-5
cmdid Executes
(omitted) Previous command.
-n The nth command before the most recent one, where n is a number in the
command line stack relative to the most recent command, which is -1.
m Command number m in the command line stack. The number m is absolute (not
relative).
string The most recent command beginning with string.