Download User`s Manual

Transcript
Command Interpreter
of all system variables.
Write-protected variables cannot be changed explicitly by the user. Only system
variables may be write-protected.
Global variables are always visible, except when they are hidden by local variables
with the same name. Variables that are not declared in a var statement or passed as
parameters to a macro are global. In particular, all system variables are global variables.
Local variables exist only within the macro where they are declared, and in macros called from this macro. Local variables must be declared in a var statement or
passed as parameters to a macro (see p. 37).
The following variables are used by the command interpreter:
echo
determines which commands are echoed, i. e. copied to standard output before execution. The possible settings are:
NULL
(or not set at all) In macros, commands that are not built into the
command line interpreter (see p. 21) are echoed; interactively, commands are not echoed.
on
Commands that are not built into the command line interpreter are
echoed regardless of whether they occur in macros or interactively.
full
All commands are echoed, and the corresponding line numbers in
macros are given.
off
Commands are not echoed.
Labels are not included in the echo; variable substitutions are included in the echo.
Statements that are preceded by “ @” will only be echoed if the system variable
echo has the value full.
erract
is a variable for error handling. If an error occurs within a macro,1 the value of erract is executed as command. By default the exit command is executed, i.e. the
program returns to interactive input. Errors that occur interactively are displayed
and the program continues with the execution of the next statement
Example: set erract=chain show ; quit
With this setting of erract, in case of an error a listing of all global
variables is given, and the program is stopped. Such error handling
can be useful if the program is used non-interactively.
nparam
denotes the number of command line parameters passed to a macro (see p. 19).
1
18
Errors that occur interactively are displayed and the program continues with the execution
of the next statement.