: Repeating/Editing a Previous Command

rawhtml60#

You can repeat a command in VISTA without typing it over by using the character. The character comes before the command you want to repeat. It is also possible to modify a command while you repeat it.

The command comes in several forms:

As an example, suppose the HISTORY command gives the output:

verbatim61#
Then
#example447#

Note the last example: The history mechanism will repeat the last command which begins with 'M'. If there are several commands which begin with the same letter, you have to supply enough of the command name after the to uniquely specify the command to be repeated.

It is possible to modify a previous command using the construction before executing the command again. There are several ways in which this modification can be done:

  1. <#454#>You can ADD words to the command by typing them after you enter 'command', provided that these words are not keyword values (EXPRESSION=VALUE) which are already present in the previous command.<#454#>

  2. <#455#>You can modify keyword values which already exist in the previous command by simply repeating the keyword with a new value. For instance, if the old command was ;SPMquot;PLOT 1 R=200 XS=200 XE=300 MIN=400;SPMquot;, and you re-ran the command with ;SPMquot;PLOT R=234;SPMquot;, the new command would be ;SPMquot;PLOT 1 R=234 XS=200 XE=300 MIN=400;SPMquot;<#455#>

  3. <#456#>You can force a keyword value to be added to or deleted from the previous command (and not substituted as described above) by preceding the keyword with a plus (+) or minus (-) sign.<#456#>

As an examples of command modification with , assume you wanted to repeat in various ways the command
#hanging458#
which, we will assume is number 10 in the history list.
#example461#
Now suppose that command number 58 was
#hanging467#
Then
#example470#

Note: When using the '-' sign to delete words, you must supply an exact match to the word being deleted.