1 .\" Copyright (c) 1983, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)environ.7 8.3 (Berkeley) 4/19/94
38 .Ar extern char **environ ;
40 An array of strings called the
44 when a process begins.
45 By convention these strings have the form
47 The following names are used by various commands:
48 .Bl -tag -width LC_MONETARY
50 The size of the block units used by several commands, most notably
55 This variable is processed by the
59 The user's preferred width in column positions for the terminal.
64 use this to format output into columns.
65 If unset or empty, utilities will use an
67 call to ask the terminal driver for the width.
71 A startup list of commands read by
76 A user's login directory, set by
78 from the password file
81 This variable configures all programs which use
83 to use the specified locale unless the
87 Overrides the values of
97 Locale to be used for ordering of strings.
99 Locale to be used for character classification
100 (letter, space, digit, etc.) and for interpreting byte sequences as
101 multibyte characters.
103 Locale to be used for diagnostic messages.
105 Locale to be used for interpreting monetary input
106 and formatting output.
108 Locale to be used for interpreting numeric input and
111 Locale to be used for interpreting dates input and
112 for formatting output.
114 The location of the user's
115 mailbox instead of the default in /var/mail,
119 and many other mail clients.
121 List of directories to be searched for the message catalog referred to by
126 Default paginator program.
127 The program specified by this variable is used by
131 etc, to display information which is longer than the current display.
133 The sequence of directories, separated by colons, searched by
138 etc, when looking for an executable file.
140 is set to ``/usr/bin:/bin'' initially by
143 The name of the default printer to be used by
149 The current directory pathname.
151 The full pathname of the user's login shell.
153 The kind of terminal for which output is to be prepared.
154 This information is used by commands, such as
158 which may exploit special terminal capabilities.
160 .Pa /usr/share/misc/termcap
162 for a list of terminal types.
164 The string describing the terminal in
167 it begins with a '/', the name of the termcap file.
173 A sequence of pathnames of termcap files, separated by colons or spaces,
174 which are searched for terminal descriptions in the order listed.
181 .Dq Pa $HOME/.termcap:/etc/termcap .
185 contains a full pathname.
187 The directory in which to store temporary files.
188 Most applications use either
192 Setting this variable will make them use another directory.
194 The timezone to use when displaying dates.
195 The normal format is a pathname relative to
196 .Dq Pa /usr/share/zoneinfo .
197 For example, the command
198 .Dq env TZ=America/Los_Angeles date
199 displays the current time in California.
202 for more information.
204 The login name of the user.
207 Further names may be placed in the environment by the
217 It is unwise to change certain
219 variables that are frequently exported by
227 unless you know what you are doing.
229 The current environment variables can be printed with
244 Programs can query and modify the environment, using the environment routines
250 Direct access can be made through the global variable
252 though it is recommended that changes to the enviroment still be made through
253 the environment routines.
255 Shared libraries and bundles don't have direct access to
257 which is only available to the loader
259 when a complete program is being linked.
260 The environment routines can still be used, but if direct access to
266 can be used to retrieve the address of
290 manual page appeared in