SET(1F) (Form and Menu Language Interpreter Utilities) SET(1F)
NAME
set, unset - set and unset environment variables in core or
in files
SYNOPSIS
set -<l | ffilename | e variable=value> . . . | set -<l |
ffilename | e> variable
unset -<l | ffilename variable> . . .
DESCRIPTION
The set built-in can be used to set variables in the
environment or add variables to environment-like files. The
unset built-in removes these variables. There are two
built-in environments; a local one, and the UNIX environment
which passes variables between processes. These are
accessed by the \ options, respectively. When expanding
variables, the Interpreter checks the local environment
first, then the UNIX environment. If you use a filename
with the f option, you must include that filename when you
are expanding variables (e.g. ${(filename)VARIABLE}).
If a variable name is given without equating it to a value,
set expects the value to be on stdin.
EXAMPLE
Storing a selection made in a menu:
.
.
.
name=Selection 2
action=`set -l SELECTION=2`close
.
.
.
WARNING
Note that at least one of the allowed switches must be used.
Note that a switch must be used for each variable being
Page 1 May 1989
SET(1F) (Form and Menu Language Interpreter Utilities) SET(1F)
set/unset.
Note that there is no space between the f option and the
filename.
UNIX environment variables (those set using the e) can only
be set for the current fmli process and the processes it
calls.
When using the f option, unless the filename is unique to
the process, other users of the Interpreter on the same
machine will be able to expand these variables.
SEE ALSO
env(1), sh(1)
Page 2 May 1989