OSDN Git Service

(split) LDP man-pages の original/ を v3.32 に更新。
[linuxjm/LDP_man-pages.git] / draft / man7 / environ.7
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\"   Fri Apr  2 11:32:09 MET DST 1993
3 .\" and Andries Brouwer (aeb@cwi.nl), Fri Feb 14 21:47:50 1997.
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" USA.
24 .\"
25 .\" Modified Sun Jul 25 10:45:30 1993 by Rik Faith (faith@cs.unc.edu)
26 .\" Modified Sun Jul 21 21:25:26 1996 by Andries Brouwer (aeb@cwi.nl)
27 .\" Modified Mon Oct 21 17:47:19 1996 by Eric S. Raymond (esr@thyrsus.com)
28 .\" Modified Wed Aug 27 20:28:58 1997 by Nicolas Lichtmaier (nick@debian.org)
29 .\" Modified Mon Sep 21 00:00:26 1998 by Andries Brouwer (aeb@cwi.nl)
30 .\" Modified Wed Jan 24 06:37:24 2001 by Eric S. Raymond (esr@thyrsus.com)
31 .\" Modified Thu Dec 13 23:53:27 2001 by Martin Schulze <joey@infodrom.org>
32 .\"
33 .\" nakano Ãí: Nicolas ¤µ¤ó¤Î a ¤Ï¥ª¥ê¥¸¥Ê¥ë¤Ç¤Ï \'a ¤À¤¬,
34 .\" ¥­¥ã¥é¥¯¥¿¤ò²õ¤¹¤Î¤Ç a ¤ËÊѹ¹¤·¤¿.
35 .\"
36 .\" Japanese Version Copyright (c) 1997 KURODA Masaru all rights reserved.
37 .\" Translated May 27, 1997 by KURODA Masaru <kuro@st.rim.or.jp>
38 .\" Modified Sat 25 Jul 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
39 .\" Modified Sun 6 Dec 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
40 .\" Updated & Modified Sat Aug 21 1999
41 .\"       by NAKANO Takeo <nakano@apm.seikei.ac.jp>
42 .\" Updated & Modified Sat 18 Mar 2000 by NAKANO Takeo
43 .\" Updated Sat Dec 22 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
44 .\" Updated Sat Mar 23 JST 2002 by Kentaro Shirakata <argrath@ub32.org>
45 .\" Updated 2010-04-11, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.24
46 .\"
47 .\"WORD:        environment             ´Ä¶­
48 .\"WORD:        environment variable    ´Ä¶­ÊÑ¿ô
49 .\"WORD:        shell variable          ¥·¥§¥ëÊÑ¿ô
50 .\"WORD:        locale                  ¥í¥±¡¼¥ë
51 .\"WORD:        locale category         ¥í¥±¡¼¥ë¥«¥Æ¥´¥ê
52 .\"
53 .TH ENVIRON 7 2009-07-25 "Linux" "Linux Programmer's Manual"
54 .\"O .SH NAME
55 .\"O environ \- user environment
56 .SH Ì¾Á°
57 environ \- ¥æ¡¼¥¶´Ä¶­
58 .\"O .SH SYNOPSIS
59 .SH ½ñ¼°
60 .nf
61 .BI "extern char **" environ ;
62 .br
63 .fi
64 .\"O .SH DESCRIPTION
65 .SH ÀâÌÀ
66 .\"O The variable
67 .\"O .I environ
68 .\"O points to an array of pointers to strings called the "environment".
69 .\"O The last pointer in this array has the value NULL.
70 .\"O (This variable must be declared in the user program,
71 .\"O but is declared in the header file
72 .\"O .I <unistd.h>
73 .\"O in case the header files came from libc4 or libc5, and
74 .\"O in case they came from glibc and
75 .\"O .B _GNU_SOURCE
76 .\"O was defined.)
77 .\"O This array of strings is made available to the process by the
78 .\"O .BR exec (3)
79 .\"O call that started the process.
80 ÊÑ¿ô
81 .I environ
82 ¤Ï¡Ö´Ä¶­ (environment)¡×¤È¸Æ¤Ð¤ì¤ëʸ»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤ÎÇÛÎó¤Ç¤¢¤ë¡£
83 ¤³¤ÎÇÛÎó¤ÎºÇ¸å¤Î¥Ý¥¤¥ó¥¿¤ÎÃͤϠNULL ¤Ç¤¢¤ë¡£
84 (¤³¤ÎÊÑ¿ô¤Ï¥æ¡¼¥¶¡¼¥×¥í¥°¥é¥à¤ÇÀë¸À¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
85 ¤¿¤À¤· libc4 ¤ä libc5 ¤Î¥Ø¥Ã¥À¡¼¥Õ¥¡¥¤¥ë¤Ê¤é
86 .I <unistd.h>
87 ¤ÇÀë¸À¤µ¤ì¤Æ¤¤¤ë¤·¡¢¤³¤ì¤¬ glibc Í³Íè¤Î¤â¤Î¤Ç¤â
88 .B _GNU_SOURCE
89 ¤¬ define ¤µ¤ì¤Æ¤¤¤ì¤ÐÀë¸ÀºÑ¤ß¤È¤Ê¤ë)¡£
90 ¤³¤Îʸ»úÎóÇÛÎó¤Ï¡¢
91 ¥×¥í¥»¥¹¤òµ¯Æ°¤¹¤ë
92 .BR exec (3)
93 ¤Ë¤è¤Ã¤Æ¡¢¤½¤Îµ¯Æ°¤µ¤ì¤¿¥×¥í¥»¥¹¤ÇÍøÍѤǤ­¤ë¤è¤¦¤Ë¤Ê¤ë¡£
94
95 .\"O By convention the strings in
96 .\"O .I environ
97 .\"O have the form "\fIname\fP\fB=\fP\fIvalue\fP".
98 .\"O Common examples are:
99 ÄÌÎã¤Ç¤Ï¡¢
100 .I environ
101 ¤Îʸ»úÎó¤Ï "\fIname\fP\fB=\fP\fIvalue\fP" ¤È¤¤¤¦½ñ¼°¤ò¤È¤ë¡£
102 ¤è¤¯ÍѤ¤¤é¤ì¤ëÎã¤ò°Ê²¼¤Ë¼¨¤¹¡£
103 .TP
104 .B USER
105 .\"O The name of the logged-in user (used by some BSD-derived programs).
106 ¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó̾ (BSD µ¯¸»¤Î¥×¥í¥°¥é¥à¤Ê¤É¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤ì¤ë)¡£
107 .TP
108 .B LOGNAME
109 .\"O The name of the logged-in user (used by some System-V derived programs).
110 ¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó̾(System V µ¯¸»¤Î¥×¥í¥°¥é¥à¤Ê¤É¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤ì¤ë)¡£
111 .TP
112 .B HOME
113 .\"O A user's login directory, set by
114 .\"O .BR login (1)
115 .\"O from the password file
116 .\"O .BR passwd (5).
117 ¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó¥Ç¥£¥ì¥¯¥È¥ê¡£
118 .BR login (1)
119 ¤¬¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë
120 .BR passwd (5)
121 ¤«¤é¼èÆÀ¤·¤ÆÀßÄꤹ¤ë¡£
122 .TP
123 .B LANG
124 .\"O The name of a locale to use for locale categories when not overridden
125 .\"O by \fBLC_ALL\fP or more specific environment variables like
126 .\"O \fBLC_COLLATE\fP, \fBLC_CTYPE\fP, \fBLC_MESSAGES\fP, \fBLC_MONETARY\fP,
127 .\"O \fBLC_NUMERIC\fP, \fBLC_TIME\fP, cf.
128 .\"O .BR locale (5).
129 ¥í¥±¡¼¥ë¤Î³Æ¥«¥Æ¥´¥ê¤Ç»ÈÍѤµ¤ì¤ë¥í¥±¡¼¥ë¤Î̾Á°¡£\fBLC_ALL\fP ¤ä¡¢
130 ¤è¤ê¶¹¤¤ÈϰϤòÂоݤȤ¹¤ë´Ä¶­ÊÑ¿ô
131 .RB ( LC_COLLATE ,
132 .BR LC_CTYPE ,
133 .BR LC_MESSAGES ,
134 .BR LC_MONETARY ,
135 .BR LC_NUMERIC ,
136 .B LC_TIME
137 ¤Ê¤É)
138 ¤Ë¤è¤Ã¤Æ¾å½ñ¤­¤µ¤ì¤ë¤³¤È¤â¤¢¤ë¡£
139 .BR locale (5)
140 ¤ò¸«¤è¡£
141 .TP
142 .B PATH
143 .\"O The sequence of directory prefixes that
144 .\"O .BR sh (1)
145 .\"O and many other
146 .\"O programs apply in searching for a file known by an incomplete pathname.
147 .\"O The prefixes are separated by \(aq\fB:\fP\(aq.
148 .\"O (Similarly one has \fBCDPATH\fP used by some shells to find the target
149 .\"O of a change directory command, \fBMANPATH\fP used by
150 .\"O .BR man (1)
151 .\"O to
152 .\"O find manual pages, etc.)
153 .BR sh (1)
154 ¤ä¾¤Î¥×¥í¥°¥é¥à¤¬¡¢¥Õ¥ë¥Ñ¥¹¤ÇÍ¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¼Â¹Ô¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤¹¤ë¤È¤­¡¢
155 ¥Õ¥¡¥¤¥ë̾¤ËÁ°ÃÖ¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ÎÇÛÎó¡£
156 ³Æ¥Ç¥£¥ì¥¯¥È¥ê¤Ï \(aq\fB:\fP\(aq ¤Ë¤è¤Ã¤Æ¶èÀÚ¤é¤ì¤ë¡£
157 (Ʊ¤¸¤è¤¦¤Ê¤â¤Î¤Ë¡¢
158 ¥·¥§¥ë¤¬¥Ç¥£¥ì¥¯¥È¥êÊѹ¹¥³¥Þ¥ó¥É¤ÎÊѹ¹Àè¤òõ¤¹¤¿¤á¤ËÍѤ¤¤ë
159 \fBCDPATH\fP ¤ä¡¢
160 .BR man (1)
161 ¤¬¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Î¸¡º÷¤ËÍѤ¤¤ë \fBMANPATH\fP ¤Ê¤É¤¬¤¢¤ë¡£)
162 .TP
163 .B PWD
164 .\"O The current working directory.
165 .\"O Set by some shells.
166 ¸½ºß¤Î¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¡£¤¤¤¯¤Ä¤«¤Î¥·¥§¥ë¤¬ÀßÄꤹ¤ë¡£
167 .TP
168 .B SHELL
169 .\"O The pathname of the user's login shell.
170 ¥æ¡¼¥¶¡¼¤Î¥í¥°¥¤¥ó¥·¥§¥ë¤Î¥Ñ¥¹Ì¾¡£
171 .TP
172 .B TERM
173 .\"O The terminal type for which output is to be prepared.
174 üËö¤Î¼ïÎà¡£½ÐÎϤϤ³¤ì¤Ë¤¢¤ï¤»¤ÆÍÑ°Õ¤µ¤ì¤ë¡£
175 .TP
176 .B PAGER
177 .\"O The user's preferred utility to display text files.
178 ¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤òɽ¼¨¤¹¤ë¥æ¡¼¥Æ¥ê¥Æ¥£¡£¥æ¡¼¥¶¡¼¤¬¹¥¤ß¤Î¤â¤Î¤òÀßÄꤹ¤ë¡£
179 .TP
180 .BR EDITOR / VISUAL
181 .\"O The user's preferred utility to edit text files.
182 ¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤¹¤ë¥æ¡¼¥Æ¥ê¥Æ¥£¡£¥æ¡¼¥¶¡¼¤¬¹¥¤ß¤Î¤â¤Î¤òÀßÄꤹ¤ë¡£
183 .\" .TP
184 .\" .B BROWSER
185 .\"O .\" The user's preferred utility to browse URLs. Sequence of colon-separated
186 .\"O .\" browser commands. See http://www.catb.org/~esr/BROWSER/ .
187 .\" URL ¤Î±ÜÍ÷¤ËÍѤ¤¤ë¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡£¥æ¡¼¥¶¡¼¤¬¹¥¤ß¤Î¤â¤Î¤òÀßÄꤹ¤ë¡£
188 .\" ¥³¥í¥ó¤Ç¶èÀڤäƥ֥饦¥¶¥³¥Þ¥ó¥É¤òʤ٤롣
189 .\" http://www.catb.org/~esr/BROWSER/ ¤ò¸«¤è¡£
190 .PP
191 .\"O Further names may be placed in the environment by the \fIexport\fP
192 .\"O command and "name=value" in
193 .\"O .BR sh (1),
194 .\"O or by the \fIsetenv\fP command if you use
195 .\"O .BR csh (1).
196 .\"O Arguments may also be placed in the
197 .\"O environment at the point of an
198 .\"O .BR exec (3).
199 .\"O A C program can manipulate its environment using the functions
200 .\"O .BR getenv (3),
201 .\"O .BR putenv (3),
202 .\"O .BR setenv (3),
203 .\"O and
204 .\"O .BR unsetenv (3).
205 ´Ä¶­¤Ë̾Á°¤òÄɲ乤ë¾ì¹ç¤Ë¤Ï¡¢
206 .BR sh (1)
207 ¤Ç¤Ï \fIexport\fP ¥³¥Þ¥ó¥É¤È "name=value" ¤ò»ÈÍѤ¹¤ë¡£
208 .BR csh (1)
209 ¤Ç¤Ï \fIsetenv\fP ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¡£
210 .BR exec (3)
211 ¤Î°ú¿ô¤È¤·¤Æ¤â´Ä¶­¤òÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
212 C ¥×¥í¥°¥é¥à¤«¤é¤Ï¡¢
213 .BR getenv (3),
214 .BR putenv (3),
215 .BR setenv (3),
216 .BR unsetenv (3)
217 ¤Ê¤É¤Î´Ø¿ô¤òÍѤ¤¤Æ´Ä¶­¤ò°·¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
218
219 .\"O Note that the behavior of many programs and library routines is
220 .\"O influenced by the presence or value of certain environment variables.
221 .\"O A random collection:
222 ¥×¥í¥°¥é¥à¤ä¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤Î¿¤¯¤Ï¡¢¤½¤ì¤¾¤ìŬÅö¤Ê´Ä¶­ÊÑ¿ô¤Î¸ºß
223 ¤äÃͤˤè¤Ã¤Æ¡¢Æ°ºî¤Ë±Æ¶Á¤ò¼õ¤±¤ë¤³¤È¤¬¤¢¤ë¡£°Ê²¼¡¢Å¬µ¹µó¤²¤Æ¤ß¤è¤¦¡£
224 .LP
225 .\"O The variables
226 .\"O .BR LANG ", " LANGUAGE ", " NLSPATH ", " LOCPATH ", "
227 .\"O .BR LC_ALL ", " LC_MESSAGES ", "
228 .\"O etc. influence locale handling, cf.
229 .\"O .BR locale (5).
230 .BR LANG ", " LANGUAGE ", " NLSPATH ", " LOCPATH ", "
231 .BR LC_ALL ", " LC_MESSAGES ", "
232 ¤Ê¤É¤ÎÊÑ¿ô¡£¥í¥±¡¼¥ë¤Î°·¤¤¤Ë±Æ¶Á¤¹¤ë¡£
233 .BR locale (5)
234 ¤ò¸«¤è¡£
235 .LP
236 .\"O .B TMPDIR
237 .\"O influences the path prefix of names created by
238 .\"O .BR tmpnam (3)
239 .\"O and other routines, the temporary directory used by
240 .\"O .BR sort (1)
241 .\"O and other programs, etc.
242 .B TMPDIR
243 ¤Ï
244 .BR tmpnam (3)
245 ¤Ê¤É¤Î¥ë¡¼¥Á¥ó¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤ë¥Õ¥¡¥¤¥ë̾¤ËÁ°ÃÖ¤µ¤ì¤ë¥Ñ¥¹¤Ë±Æ¶Á¤¹¤ë¡£¤Þ¤¿
246 .BR sort (1)
247 ¤Î°ì»þ¥Ç¥£¥ì¥¯¥È¥ê¤ËÍѤ¤¤é¤ì¤¿¤ê¡¢Â¾¤Î¥×¥í¥°¥é¥à¤«¤é¤âÍøÍѤµ¤ì¤ë¡£
248 .LP
249 .\"O .BR LD_LIBRARY_PATH ", " LD_PRELOAD
250 .\"O and other LD_* variables influence
251 .\"O the behavior of the dynamic loader/linker.
252 .BR LD_LIBRARY_PATH ", " LD_PRELOAD
253 ¤Ê¤É¤Î LD_* ÊÑ¿ô¤Ï¥À¥¤¥Ê¥ß¥Ã¥¯¥í¡¼¥À¡¦¥ê¥ó¥«¤ÎÆ°ºî¤Ë±Æ¶Á¤¹¤ë¡£
254 .LP
255 .\"O .B POSIXLY_CORRECT
256 .\"O makes certain programs and library routines follow
257 .\"O the prescriptions of POSIX.
258 .B POSIXLY_CORRECT
259 ¤¬»ØÄꤵ¤ì¤ë¤È¡¢¤¢¤ë¼ï¤Î¥×¥í¥°¥é¥à¤ä¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤Ï
260 POSIX ¤Îµ¬Äê¤Ë½¾¤¦¤è¤¦¤Ë¤Ê¤ë¡£
261 .LP
262 .\"O The behavior of
263 .\"O .BR malloc (3)
264 .\"O is influenced by
265 .\"O .B MALLOC_*
266 .\"O variables.
267 .BR malloc (3)
268 ¤ÎÆ°ºî¤Ï
269 .B MALLOC_*
270 ÊÑ¿ô¤Ë¤è¤Ã¤Æ±Æ¶Á¤µ¤ì¤ë¡£
271 .LP
272 .\"O The variable
273 .\"O .B HOSTALIASES
274 .\"O gives the name of a file containing aliases
275 .\"O to be used with
276 .\"O .BR gethostbyname (3).
277 .B HOSTALIAS
278 ÊÑ¿ô¤Ï¡¢
279 .BR gethostbyname (3)
280 ¤¬ÍѤ¤¤ë¥¨¥¤¥ê¥¢¥¹¤¬½ñ¤«¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë̾¤òÍ¿¤¨¤ë¡£
281 .LP
282 .\"O .BR TZ " and " TZDIR
283 .\"O give timezone information used by
284 .\"O .BR tzset (3)
285 .\"O and through that by functions like
286 .\"O .BR ctime (3),
287 .\"O .BR localtime (3),
288 .\"O .BR mktime (3),
289 .\"O .BR strftime (3).
290 .\"O See also
291 .\"O .BR tzselect (8).
292 .BR TZ " ¤È " TZDIR
293 ¤Ï
294 .BR tzset (3)
295 ¤ª¤è¤Ó¡¢¤³¤Î´Ø¿ô¤ò»È¤¦
296 .BR ctime (3),
297 .BR localtime (3),
298 .BR mktime (3),
299 .BR strftime (3)
300 ¤È¤¤¤Ã¤¿´Ø¿ô¤ÇÍѤ¤¤é¤ì¤ë¥¿¥¤¥à¥¾¡¼¥ó¤Î¾ðÊó¤òÍ¿¤¨¤ë¡£
301 .BR tzselect (8)
302 ¤â»²¾È¤Î¤³¤È¡£
303 .LP
304 .\"O .B TERMCAP
305 .\"O gives information on how to address a given terminal
306 .\"O (or gives the name of a file containing such information).
307 .B TERMCAP
308 ¤Ï¡¢¸½ºß¤ÎüËö¾ðÊó¤Î¼èÆÀÀè
309 (¤¢¤ë¤¤¤Ï¤½¤Î¤è¤¦¤Ê¾ðÊ󤬽ñ¤«¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë̾) ¤òÍ¿¤¨¤ë¡£
310 .LP
311 .\"O .BR COLUMNS " and " LINES
312 .\"O tell applications about the window size, possibly overriding the actual size.
313 .BR COLUMNS " ¤È " LINES
314 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¥¦¥¤¥ó¥É¥¦¤Î¥µ¥¤¥º¤òÅÁ¤¨¤ë¡£
315 ¼ÂºÝ¤Î¥µ¥¤¥º¤È¤Ï°ã¤¦ÃͤòÍ¿¤¨¤ë¤³¤È¤â¤Ç¤­¤ë¡£
316 .LP
317 .\"O .BR PRINTER " or " LPDEST
318 .BR PRINTER " ¤Þ¤¿¤Ï " LPDEST
319 .\"O may specify the desired printer to use.
320 .\"O See
321 .\"O .BR lpr (1).
322 ÍѤ¤¤¿¤¤¥×¥ê¥ó¥¿¤ò»ØÄꤹ¤ë¡£
323 .BR lpr (1)
324 ¤ò»²¾È¤Î¤³¤È¡£
325 .LP
326 .\"O Etc.
327 ¤Ê¤É¤Ê¤É...
328 .\"O .SH BUGS
329 .SH ¥Ð¥°
330 .\"O Clearly there is a security risk here.
331 .\"O Many a system command has been
332 .\"O tricked into mischief by a user who specified unusual values for
333 .\"O .BR IFS " or " LD_LIBRARY_PATH .
334 ¤³¤ì¤é¤ÎÃæ¤Ë¤Ï¡¢ÌÀ¤é¤«¤Ë¥»¥­¥å¥ê¥Æ¥£¾å¤Î´í¸±¤¬Â¸ºß¤¹¤ë¡£
335 ¥æ¡¼¥¶¡¼¤¬
336 .BR IFS " ¤ä " LD_LIBRARY_PATH
337 ¤Ë°Û¾ï¤ÊÃͤòÍ¿¤¨¤¿¤³¤È¤Ë¤è¤Ã¤Æ¡¢
338 ¤³¤ì¤Þ¤Ç¿¤¯¤Î¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É¤¬¤À¤Þ¤µ¤ì¤Æ¡¢
339 ¥·¥¹¥Æ¥à¤ò¤Ò¤É¤¤Ìܤˤ¢¤ï¤»¤Æ¤­¤¿¡£
340
341 .\"O There is also the risk of name space pollution.
342 .\"O Programs like
343 .\"O .I make
344 .\"O and
345 .\"O .I autoconf
346 .\"O allow overriding of default utility names from the
347 .\"O environment with similarly named variables in all caps.
348 .\"O Thus one uses
349 .\"O .B CC
350 .\"O to select the desired C compiler (and similarly
351 .\"O .BR MAKE ,
352 .\"O .BR AR ,
353 .\"O .BR AS ,
354 .\"O .BR FC ,
355 .\"O .BR LD ,
356 .\"O .BR LEX ,
357 .\"O .BR RM ,
358 .\"O .BR YACC ,
359 .\"O etc.).
360 ̾Á°¶õ´Ö¤¬±øÀ÷¤µ¤ì¤ë´í¸±À­¤â¸ºß¤¹¤ë¡£
361 .I make
362 ¤ä
363 .I autoconf
364 ¤Î¤è¤¦¤Ê¥×¥í¥°¥é¥à¤Ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ò
365 ´Ä¶­¤Ë¤¢¤ë»÷¤¿¤è¤¦¤Ê̾Á°¤ÎÊÑ¿ô¤Ç¾å½ñ¤­¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë
366 (Ä̾ï¤Ï¤¹¤Ù¤ÆÂçʸ»ú¤ÎÊÑ¿ô¤òÍѤ¤¤ë)¡£
367 ¤¹¤Ê¤ï¤Á¡¢ÍøÍѤ·¤¿¤¤ C ¥³¥ó¥Ñ¥¤¥é¤Ï
368 .B CC
369 ¤ÇÁªÂò¤Ç¤­¤ë¡£¤Þ¤¿Æ±ÍͤË
370 .BR MAKE ,
371 .BR AR ,
372 .BR AS ,
373 .BR FC ,
374 .BR LD ,
375 .BR LEX ,
376 .BR RM ,
377 .B YACC
378 ¤Ê¤É¤âÍѤ¤¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
379 .\"O However, in some traditional uses such an environment variable
380 .\"O gives options for the program instead of a pathname.
381 .\"O Thus, one has
382 .\"O .BR MORE ,
383 .\"O .BR LESS ,
384 .\"O and
385 .\"O .BR GZIP .
386 .\"O Such usage is considered mistaken, and to be avoided in new
387 .\"O programs.
388 .\"O The authors of
389 .\"O .I gzip
390 .\"O should consider renaming their option to
391 .\"O .BR GZIP_OPT .
392 ¤È¤³¤í¤¬°ìÊý¤Ç¤Ï¡¢¤³¤Î¤è¤¦¤ÊÊÑ¿ô¤ò
393 (¥Ñ¥¹Ì¾¤Ç¤Ï¤Ê¤¯)
394 ¥×¥í¥°¥é¥à¤ËÂФ¹¤ë¥ª¥×¥·¥ç¥ó¤È¤·¤Æ°·¤¦¤è¤¦¤Êήµ·¤â¸ºß¤·¤Æ¤­¤¿¡£
395 Î㤨¤Ð
396 .BR MORE ,
397 .BR LESS ,
398 .B GZIP
399 ¤Ê¤É¤¬¤½¤¦¤Ç¤¢¤ë¡£
400 ¤³¤Î¤è¤¦¤ÊÍøÍÑË¡¤Ï´Ö°ã¤Ã¤Æ¤¤¤ë¤È¹Í¤¨¤ë¤Ù¤­¤Ç¡¢
401 ¿·¤·¤¤¥×¥í¥°¥é¥à¤Ç¤ÏÈò¤±¤ë¤Ù¤­¤Ç¤¢¤ë¡£
402 .I gzip
403 ¤Îºî¼Ô¤¿¤Á¤Ï¡¢¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë´Ä¶­ÊÑ¿ô¤ò
404 .B GZIP_OPT
405 ¤Ë²þ̾¤¹¤ë¤³¤È¤ò¹Í¤¨¤ë¤Û¤¦¤¬¤è¤¤¡£
406 .\"O .SH "SEE ALSO"
407 .SH ´ØÏ¢¹àÌÜ
408 .BR bash (1),
409 .BR csh (1),
410 .BR login (1),
411 .BR sh (1),
412 .BR tcsh (1),
413 .BR execve (2),
414 .BR clearenv (3),
415 .BR exec (3),
416 .BR getenv (3),
417 .BR putenv (3),
418 .BR setenv (3),
419 .BR unsetenv (3),
420 .BR locale (5)