environ.7: Add some details describing hos shell's environment is initialized

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-17 13:06:42 +01:00
parent 170eb74156
commit 94d3ac0936
1 changed files with 13 additions and 0 deletions

View File

@ -138,6 +138,19 @@ or by the
command if you use command if you use
.BR csh (1). .BR csh (1).
The initial environment of the shell is populated in various ways,
such as definitions from
.IR /etc/environment
that are processed by
.BR pam_env (8)
for all users at login time (on systems that employ
.BR pam (8)).
In addition, various shell initialization scripts, such as the system-wide
.IR /etc/profile
script and per-user initializations script may include commands
that add variables to the shell's environment;
see the manual page of your preferred shell for details.
Bourne-style shells support the syntax Bourne-style shells support the syntax
NAME=value command NAME=value command