Products Applications Downloads Features Wiki forum Store

set Command

From Wiki077
Jump to: navigation, search


set [scope_options] name = value
set [scope_options] -u name_pattern
set [scope_options] [-s] [-T]

Set a variable specified by name to the value given. If no name is specified, then the list of all variables is printed out.

Options

-s will make the output is suitable for loading as a script.
-u will un-set the variable(s) specified.
-T will output the information in table format.
Scope options:
-t Top-level read-only Touch variables.
(blank) Local script variables (default).

Examples

set A = 1
set -g A = 1
set -u A*
set -u
set -s

See Also

evar, cvar, evar, bvar

Personal tools