HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 4 System Debug Command Specifications

DO

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Reexecutes a command from the command stack.

Syntax

   DO [cmd_string   ]        

   DO [history_index]        

DO, entered alone, reexecutes the most recent command.

Parameters

cmd_string

Execute the most recent command in the history stack that commences with cmd_string. For example, do wh could be used to match the most recent WHILE statement.

history_index

The history stack index of the command that is to be executed.

A negative index can be used to specify a command relative to the current command. For example, -2 implies the command used two commands ago.

Examples

   %cmdebug > do w

   %cmdebug > wl 2+4

   %6

Execute the most recent command that started with "w".

Limitations, Restrictions

Upon initial entry into System Debug, the command stack is empty, since no prior command has been executed. If the DO command is entered as the first command, an empty command is reexecuted. This is effectively the same as entering a blank line.

The MPE XL command interpreter allows an edit string to be specified on the DO command line. This feature is not supported in System Debug.

CAUTION: The output format of all System Debug commands is subject to change without notice. Programs that are developed to postprocess System Debug output should not depend on the exact format (spacing, alignment, number of lines, uppercase or lowercase, or spelling) of any System Debug command output.
Feedback to webmaster