Navigation

Operators and Keywords

Function List:

C++ API

Built-in Function: val = echo_executing_commands ()
Built-in Function: old_val = echo_executing_commands (new_val)
Built-in Function: echo_executing_commands (new_val, "local")

Query or set the internal variable that controls the echo state.

It may be the sum of the following values:

1

Echo commands read from script files.

2

Echo commands from functions.

4

Echo commands read from command line.

More than one state can be active at once. For example, a value of 3 is equivalent to the command echo on all.

The value of echo_executing_commands may be set by the echo command or the command line option --echo-commands.

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

Package: octave