| … | |
… | |
| 2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 | |
3 | |
| 4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.22 2007/05/19 04:13:46 nightmorph Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.23 2012/06/29 15:41:54 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | With Gentoo you can easily manage the environment variables for your system. |
12 | With Gentoo you can easily manage the environment variables for your system. |
| 13 | This chapter explains how you do that, and also describes frequently used |
13 | This chapter explains how you do that, and also describes frequently used |
| 14 | variables. |
14 | variables. |
| 15 | </abstract> |
15 | </abstract> |
| 16 | |
16 | |
| 17 | <version>1.16</version> |
17 | <version>2</version> |
| 18 | <date>2007-05-18</date> |
18 | <date>2012-06-29</date> |
| 19 | |
19 | |
| 20 | <section> |
20 | <section> |
| 21 | <title>Environment Variables?</title> |
21 | <title>Environment Variables?</title> |
| 22 | <subsection> |
22 | <subsection> |
| 23 | <title>What they are</title> |
23 | <title>What they are</title> |
| … | |
… | |
| 229 | PATH="/bin:/usr/bin:/usr/kde/3.2/bin:/usr/local/bin" |
229 | PATH="/bin:/usr/bin:/usr/kde/3.2/bin:/usr/local/bin" |
| 230 | </pre> |
230 | </pre> |
| 231 | |
231 | |
| 232 | <p> |
232 | <p> |
| 233 | The concatenation of variables does not always happen, only with the following |
233 | The concatenation of variables does not always happen, only with the following |
|
|
234 | variables: <c>ADA_INCLUDE_PATH</c>, <c>ADA_OBJECTS_PATH</c>, <c>CLASSPATH</c>, |
| 234 | variables: <c>KDEDIRS</c>, <c>PATH</c>, <c>LDPATH</c>, <c>MANPATH</c>, |
235 | <c>KDEDIRS</c>, <c>PATH</c>, <c>LDPATH</c>, <c>MANPATH</c>, |
| 235 | <c>INFODIR</c>, <c>INFOPATH</c>, <c>ROOTPATH</c>, <c>CONFIG_PROTECT</c>, |
236 | <c>INFODIR</c>, <c>INFOPATH</c>, <c>ROOTPATH</c>, <c>CONFIG_PROTECT</c>, |
| 236 | <c>CONFIG_PROTECT_MASK</c>, <c>PRELINK_PATH</c> and <c>PRELINK_PATH_MASK</c>. |
237 | <c>CONFIG_PROTECT_MASK</c>, <c>PRELINK_PATH</c>, <c>PRELINK_PATH_MASK</c>, |
|
|
238 | <c>PKG_CONFIG_PATH</c> and <c>PYTHONPATH</c>. |
| 237 | For all other variables the latest defined value (in alphabetical order of the |
239 | For all other variables the latest defined value (in alphabetical order of the |
| 238 | files in <path>/etc/env.d</path>) is used. |
240 | files in <path>/etc/env.d</path>) is used. |
|
|
241 | </p> |
|
|
242 | |
|
|
243 | <p> |
|
|
244 | You can add more variables into this list of concatenate-variables by adding the |
|
|
245 | variable name to either <c>COLON_SEPARATED</c> or <c>SPACE_SEPARATED</c> |
|
|
246 | variables (also inside an env.d file). |
| 239 | </p> |
247 | </p> |
| 240 | |
248 | |
| 241 | <p> |
249 | <p> |
| 242 | When you run <c>env-update</c>, the script will create all environment variables |
250 | When you run <c>env-update</c>, the script will create all environment variables |
| 243 | and place them in <path>/etc/profile.env</path> (which is used by |
251 | and place them in <path>/etc/profile.env</path> (which is used by |