]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
environ.7: Add some details describing hos shell's environment is initialized
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 17 Feb 2016 12:06:42 +0000 (13:06 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 17 Feb 2016 12:08:45 +0000 (13:08 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man7/environ.7

index 45f78da60aede33201c84ac2dae792618ece3f3a..4df6a132987f87d57959585391a7553dad7f2724 100644 (file)
@@ -138,6 +138,19 @@ or by the
 command if you use
 .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
 
     NAME=value command