Bell 32V development
[unix-history] / usr / man / man5 / environ.5
CommitLineData
72972dd0
TL
1.TH ENVIRON 5
2.SH NAME
3environ \- user environment
4.SH SYNOPSIS
5.B extern char **environ;
6.SH DESCRIPTION
7An array of strings called the `environment' is
8made available by
9.IR exec (2)
10when a process begins.
11By convention these strings have the form
12`name=value'.
13The following names are used by various commands:
14.TP
15PATH
16The sequence of directory prefixes that
17.I sh, time,
18.IR nice (1),
19etc.,
20apply in searching for a file known by an incomplete path name.
21The prefixes are separated by `:'.
22.IR Login (1)
23sets PATH=:/bin:/usr/bin.
24.TP
25HOME
26A user's login directory, set by
27.IR login (1)
28from the password file
29.IR passwd (5).
30.TP
31TERM
32The kind of terminal for which output is to be prepared.
33This information is used by commands, such as
34.I nroff
35or
36.IR plot (1),
37which may exploit special terminal capabilities.
38See
39.IR term (7)
40for a list of terminal types.
41.PP
42Further names may be placed in the environment by
43the
44.I export
45command and `name=value' arguments in
46.IR sh (1),
47or by
48.IR exec (2).
49It is unwise to conflict with
50certain Shell variables that are frequently exported by
51`.profile' files:
52MAIL, PS1, PS2, IFS.
53.SH SEE ALSO
54exec(2), sh(1), term(7), login(1)