From 94d3ac093654fafca6b21ba12c7166b959be4d94 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 17 Feb 2016 13:06:42 +0100 Subject: [PATCH] environ.7: Add some details describing hos shell's environment is initialized Signed-off-by: Michael Kerrisk --- man7/environ.7 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man7/environ.7 b/man7/environ.7 index 45f78da60..4df6a1329 100644 --- a/man7/environ.7 +++ b/man7/environ.7 @@ -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