fix to reeves fix of dgo handling (reset b_active to 1)
[unix-history] / .ref-BSD-3 / usr / man / man5 / environ.5
CommitLineData
e4be1df6
BJ
1.TH ENVIRON 5 11/16/79 5
2.UC
3.SH NAME
4environ \- user environment
5.SH SYNOPSIS
6.B extern char **environ;
7.SH DESCRIPTION
8An array of strings called the `environment' is
9made available by
10.IR exec (2)
11when a process begins.
12By convention these strings have the form
13`name=value'.
14The following names are used by various commands:
15.TP
16PATH
17The sequence of directory prefixes that
18.I sh, time,
19.IR nice (1),
20etc.,
21apply in searching for a file known by an incomplete path name.
22The prefixes are separated by `:'.
23.IR Login (1)
24sets PATH=:/bin:/usr/bin.
25.TP
26HOME
27A user's login directory, set by
28.IR login (1)
29from the password file
30.IR passwd (5).
31.TP
32TERM
33The kind of terminal for which output is to be prepared.
34This information is used by commands, such as
35.I nroff
36or
37.IR plot (1),
38which may exploit special terminal capabilities.
39See
40.I /etc/termcap
41.RI ( termcap (5))
42for a list of terminal types.
43.TP
44SHELL
45The file name of the users login shell.
46.TP
47TERMCAP
48The string describing the terminal in TERM,
49or the name of the termcap file, see
50.IR termcap (5), termlib (3).
51.TP
52EXINIT
53A startup list of commands read by
54.IR ex (1),
55.IR edit (1),
56and
57.IR vi (1).
58.PP
59Further names may be placed in the environment by
60the
61.I export
62command and `name=value' arguments in
63.IR sh (1),
64or by the
65.I setenv
66command if you use
67.IR csh (1).
68Arguments may also be placed in the environment at the point of an
69.IR exec (2).
70It is unwise to conflict with
71certain
72.IR sh (1)
73variables that are frequently exported by
74`.profile' files:
75MAIL, PS1, PS2, IFS.
76.SH SEE ALSO
77csh(1), ex(1), login(1), sh(1), exec(2), system(3), termlib(3), termcap(5), term(7)