/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-variables.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-variables.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.14 Revision 1.15
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/1.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.14 2005/06/22 20:45:33 smithj Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.15 2005/08/01 12:06:28 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>1.11</version> 11<version>1.12</version>
12<date>2005-06-22</date> 12<date>2005-08-01</date>
13 13
14<section> 14<section>
15<title>Environment Variables?</title> 15<title>Environment Variables?</title>
16<subsection> 16<subsection>
17<title>What they are</title> 17<title>What they are</title>
279<title>User Specific</title> 279<title>User Specific</title>
280<body> 280<body>
281 281
282<p> 282<p>
283You do not always want to define an environment variable globally. For instance, 283You do not always want to define an environment variable globally. For instance,
284you might want to add <path>/home/my_user/bin</path> to the <c>PATH</c> variable 284you might want to add <path>/home/my_user/bin</path> and the current working
285directory (the directory you are in) to the <c>PATH</c> variable
285but don't want all other users on your system to have that in their <c>PATH</c> 286but don't want all other users on your system to have that in their <c>PATH</c>
286too. If you want to define an environment variable locally, you should use 287too. If you want to define an environment variable locally, you should use
287<path>~/.bashrc</path> or <path>~/.bash_profile</path>: 288<path>~/.bashrc</path> or <path>~/.bash_profile</path>:
288</p> 289</p>
289 290
290<pre caption="Extending PATH for local usage in ~/.bashrc"> 291<pre caption="Extending PATH for local usage in ~/.bashrc">
292<comment>(A colon followed by no directory is treated as the current working directory)</comment>
291PATH="${PATH}:/home/my_user/bin" 293PATH="${PATH}:/home/my_user/bin:"
292</pre> 294</pre>
293 295
294<p> 296<p>
295When you relogin, your <c>PATH</c> variable will be updated. 297When you relogin, your <c>PATH</c> variable will be updated.
296</p> 298</p>

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20