tcl.set Verb: Access/TCL

tcl.set

Command tcl.set Verb: Access/TCL
Applicable release versions: AP 6.2
Category TCL (746)
Description modifies the value of a Pick user shell variable.

If the "set" command is executed with no arguments, then it functions identically to the "penv" command. This displays a list of the currently set user variables and their values.

If the "set" command is executed with a variable.name, but with no variable.value, then the variable is assigned a null value. To completely remove a variable, use the "unset" command.

It is possible to create variable values which contain other variable names for later expansion. To do this, enclose the entire variable.value within single quotes. The quotes prevent the variable names from being translated immediately by the set command.

See the tcl "@" token for more information on using Pick shell variables.
Syntax set {variable.name{={"|'}variable.value{"|'}}}
Options
Example
set mycv=1
set
mycv=1
display @$mycv
1
Purpose
Related tcl.penv
tcl.@
tcl.unset
ue.91
tcl.tcl-prompt