From: | Sven Vermeulen <swift@×××××××××××.org> |
---|---|
To: | gentoo-doc-cvs@l.g.o |
Subject: | [gentoo-doc-cvs] cvs commit: hb-working-variables.xml |
Date: | Mon, 01 Aug 2005 12:06:47 |
Message-Id: | 200508011206.j71C6UY0001705@robin.gentoo.org |
1 | swift 05/08/01 12:06:28 |
2 | |
3 | Modified: xml/htdocs/doc/en/handbook hb-working-variables.xml |
4 | Log: |
5 | #100509 - Integrating explanation on cwd |
6 | |
7 | Revision Changes Path |
8 | 1.15 +7 -5 xml/htdocs/doc/en/handbook/hb-working-variables.xml |
9 | |
10 | file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/hb-working-variables.xml?rev=1.15&content-type=text/x-cvsweb-markup&cvsroot=gentoo |
11 | plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/hb-working-variables.xml?rev=1.15&content-type=text/plain&cvsroot=gentoo |
12 | diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/hb-working-variables.xml.diff?r1=1.14&r2=1.15&cvsroot=gentoo |
13 | |
14 | Index: hb-working-variables.xml |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v |
17 | retrieving revision 1.14 |
18 | retrieving revision 1.15 |
19 | diff -u -r1.14 -r1.15 |
20 | --- hb-working-variables.xml 22 Jun 2005 20:45:33 -0000 1.14 |
21 | +++ hb-working-variables.xml 1 Aug 2005 12:06:28 -0000 1.15 |
22 | @@ -4,12 +4,12 @@ |
23 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
24 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
25 | |
26 | -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.14 2005/06/22 20:45:33 smithj Exp $ --> |
27 | +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.15 2005/08/01 12:06:28 swift Exp $ --> |
28 | |
29 | <sections> |
30 | |
31 | -<version>1.11</version> |
32 | -<date>2005-06-22</date> |
33 | +<version>1.12</version> |
34 | +<date>2005-08-01</date> |
35 | |
36 | <section> |
37 | <title>Environment Variables?</title> |
38 | @@ -281,14 +281,16 @@ |
39 | |
40 | <p> |
41 | You do not always want to define an environment variable globally. For instance, |
42 | -you might want to add <path>/home/my_user/bin</path> to the <c>PATH</c> variable |
43 | +you might want to add <path>/home/my_user/bin</path> and the current working |
44 | +directory (the directory you are in) to the <c>PATH</c> variable |
45 | but don't want all other users on your system to have that in their <c>PATH</c> |
46 | too. If you want to define an environment variable locally, you should use |
47 | <path>~/.bashrc</path> or <path>~/.bash_profile</path>: |
48 | </p> |
49 | |
50 | <pre caption="Extending PATH for local usage in ~/.bashrc"> |
51 | -PATH="${PATH}:/home/my_user/bin" |
52 | +<comment>(A colon followed by no directory is treated as the current working directory)</comment> |
53 | +PATH="${PATH}:/home/my_user/bin:" |
54 | </pre> |
55 | |
56 | <p> |
57 | |
58 | |
59 | |
60 | -- |
61 | gentoo-doc-cvs@g.o mailing list |