echo

Synopsis

void echo(boolean)

Description

The echo command can be used the echoing of commands to stdout on or off. The default setting for echoing is off - the commands are not echoed before they are executed. If echo is turned on, all the commands will be printed to stdout exactly as they were invoked, whether from a script or from a command line. The echo output will appear after the output of the command (if any).

Example

In this example we turn the echo on midway through a series of commands to QL. Note that after echo is turned on, extra output (the echoing of a command) appears as each command is executed.

>> numbers  = {1,2,3,4,5}
>> echo (true)
echo:
 echo(true)
>> strings = {"aaa", "bbb", "ccc", "ddd"}
echo:
 strings = {"aaa", "bbb", "ccc", "ddd"}
>> grep (strings , "[ab]*")
aaa
bbb
echo:
 grep(strings, "[ab]*")
>> echo (false)
>> grep (strings , "[cd]*")
ccc
ddd