MPE/iX Shell and Utilities Reference Manual, Vol 2
environ(3) MPE/iX Shell and Utilities environ(3)
NAME
environ — standard environment variables
SYNOPSIS
export
NAME
=value
echo
$NAME
DESCRIPTION
When a process is executed, it inherits a set of strings called the environment. It is conven-
tional for these strings to have the form:
NAME
=value
The export command built into the MPE/iX Shell can be used to set the variable
NAME
into
the environment of every child process. The echo command prints the value of environment
variable
NAME
inside the MPE/iX
Shell. Note that the shell maintains additional shell vari-
ables which are not exported to child processes; because these variables are not passed on,
they are not environment variables.
The following environment variables are used throughout
MPE/iX Shell and Utilities:
COLUMNS
If you set this variable to a numeric value, various commands use its value as the
width of the output device in columns. This overrides the default.
ENV
The value of this variable is the name of a file of MPE/iX
Shell commands, or else be
null. When the MPE/iX Shell is invoked, the file named by
ENV
is executed before the
MPE/iX Shell does anything else. Thus your
ENV
file may contain definitions of
aliases, shell functions, etc. that may be used by shell scripts. Note that your
ENV
file
is executed, whether or not the MPE/iX
Shell is invoked as a login shell.
HOME
This variable is set when you start the MPE/iX Shell. It contains the name of your
home directory, which is the default directory for cd(1).
LINES
If you set this variable to a numeric value, various commands use its value as the
number of lines available on the output device. This overrides the default.
LOGNAME
This variable is set by login. It holds the user name of the current user.
MAILER
For commands which send mail, this variable points at a mail delivery program. If
this variable is not set, then the default mailer, mailx is invoked.
Miscellaneous Information 3-3