10.0;export, revision 1.0, 88/01/21
export -- Change a Shell variable into an Environment variable.
usage: export var_name...
DESCRIPTION
The shell can access environment variables using all 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/OS.
Consult the Domain/OS documentation for additional information.
NOTE
The shell creates environment variables in uppercase only. (Environment
variables are case sensitive in Domain/OS; the shell allows only
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 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.)