ENVIRON(7) COMMAND REFERENCE ENVIRON(7)
NAME
environ - user environment
SYNOPSIS
extern char **environ;
DESCRIPTION
An array of strings called the ``environment'' is made
available by execve(2) when a process begins. By convention
these strings have the form ``name=value.'' The following
names are used by various commands:
PATH The sequence of directory prefixes that sh, time,
nice(1), etc., apply in searching for a file known
by an incomplete pathname. The prefixes are
separated by ``:''. The command login(1)sets
PATH=:/bin:/usr/bin
LIBPATH The sequence of directory names that are used by ld
to resolve libraries named by the -l flag. If not
specified, ld will use a default value of
"/usr /usr/lib /usr/local/lib". The directories in
LIBPATH are separated by colons and/or whitespace.
HOME A user's login directory, set by login(1) from the
password file passwd(5).
TERM The kind of terminal for which output is to be
prepared. This information is used by commands like
nroff which may exploit special terminal
capabilities. See /etc/termcap (termcap(5t)) for a
list of terminal types.
SHELL The filename of the user's login shell.
TERMCAP The string describing the terminal in TERM, or the
name of the termcap file, see
termcap(5t),termcap(t).
EXINIT A startup list of commands read by ex(1), edit(1),
and vi(1).
USER The login name of the user.
MAIL The pathname of the user's incoming mail drop.
Further names may be placed in the environment by the export
command and name=value arguments in sh(1sh), or by the
setenv command if you use csh(1csh). Arguments may also be
placed in the environment at the point of an execve(2). It
is unwise to conflict with certain sh(1sh) variables that
are frequently exported by .profile files: MAIL, PS1, PS2,
Printed 10/17/86 1
ENVIRON(7) COMMAND REFERENCE ENVIRON(7)
IFS.
SEE ALSO
csh(1csh), ex(1), ld(1), login(1), sh(1sh), execve(2),
getenv(3c), termcap(3t), termcap(5t).
Printed 10/17/86 2
%%index%%
na:72,62;
sy:134,206;
de:340,2582;3066,17;
se:3083,315;
%%index%%000000000089