swift 05/08/01 12:06:28 Modified: xml/htdocs/doc/en/handbook hb-working-variables.xml Log: #100509 - Integrating explanation on cwd
Revision Changes Path 1.15 +7 -5 xml/htdocs/doc/en/handbook/hb-working-variables.xml 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 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 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 Index: hb-working-variables.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- hb-working-variables.xml 22 Jun 2005 20:45:33 -0000 1.14 +++ hb-working-variables.xml 1 Aug 2005 12:06:28 -0000 1.15 @@ -4,12 +4,12 @@ <!-- The content of this document is licensed under the CC-BY-SA license --> <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.14 2005/06/22 20:45:33 smithj Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-variables.xml,v 1.15 2005/08/01 12:06:28 swift Exp $ --> <sections> -<version>1.11</version> -<date>2005-06-22</date> +<version>1.12</version> +<date>2005-08-01</date> <section> <title>Environment Variables?</title> @@ -281,14 +281,16 @@ <p> You do not always want to define an environment variable globally. For instance, -you might want to add <path>/home/my_user/bin</path> to the <c>PATH</c> variable +you might want to add <path>/home/my_user/bin</path> and the current working +directory (the directory you are in) to the <c>PATH</c> variable but don't want all other users on your system to have that in their <c>PATH</c> too. If you want to define an environment variable locally, you should use <path>~/.bashrc</path> or <path>~/.bash_profile</path>: </p> <pre caption="Extending PATH for local usage in ~/.bashrc"> -PATH="${PATH}:/home/my_user/bin" +<comment>(A colon followed by no directory is treated as the current working directory)</comment> +PATH="${PATH}:/home/my_user/bin:" </pre> <p> -- [email protected] mailing list
