9.0;export, revision 9.0, 85/03/27
EXPORT -- Change a Shell variable into an Environment variable.
usage: EXPORT var_name...
FORMAT
EXPORT var_name...
The Shell can access enviroment variables using all of the standard variable
commands and operators. The EXPORT command adds the capability of turning
regular Shell variables into environment variables.
Environment variables are variables that programs can access or set and that
are used to store global state information. Several are generated
automatically when you create a process; they can be displayed using the LVAR
(LIST_VARIABLES) command. For example:
$ lvar
environment NODETYPE = DN400
environment TZ = EST5EDT
environment PATH = :~com:/usr/ucb:/bin:/com:/usr/bin
environment TERM = apollo_15P
environment HOME = //node_8e4/joseph
environment USER = joseph
environment LOGNAME = joseph
environment PROJECT = none
environment ORGANIZATION = r_d
environment NODEID = 8E4
$
Environment variables are of special interest to users of DOMAIN/IX. Consult
the DOMAIN/IX documentation for additional information.
NOTE: The Shell creates environment variables in UPPERCASE only. (Environment
variables are case sensitive in DOMAIN/IX; the Shell only allows
uppercase ones to avoid collisions between environment variables and
Shell variables.)
ARGUMENTS
var_name
(required) Specify the Shell variable to be changed into an
environment variable. It doesn't matter whether or not the
name is typed in uppercase; the Shell converts it to
uppercase automatically. Multiple variable names are
permitted, separated by blanks. If the specified variable
does not exist, EXPORT creates it.
EXAMPLES
$ eon
$ current_dir := "//panacea/joe"
$ lvar
string current_dir = //panacea/joe (Shell variable created.)
environment USER = joe
environment LOGNAME = joe
environment PROJECT = none
environment ORGANIZATION = r_d
environment NODEID = D5B
environment PATH = :~com:/usr/ucb:/bin:/com:/usr/bin
environment TERM = apollo_19L
environment NODETYPE = DN300
environment TZ = EST5EDT
environment HOME = //panacea/joe
$ export current_dir
$ lvar
environment USER = joe
environment LOGNAME = joe
environment PROJECT = none
environment ORGANIZATION = r_d
environment NODEID = D5B
environment PATH = :~com:/usr/ucb:/bin:/com:/usr/bin
environment TERM = apollo_19L
environment NODETYPE = DN300
environment TZ = EST5EDT
environment HOME = //panacea/joe
environment CURRENT_DIR = //panacea/joe (Environment variable created.)