diff options
Diffstat (limited to 'chapter04/settingenviron.xml')
-rw-r--r-- | chapter04/settingenviron.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml index 512d30d10..86d10bf05 100644 --- a/chapter04/settingenviron.xml +++ b/chapter04/settingenviron.xml @@ -43,7 +43,7 @@ umask 022 LFS=/mnt/lfs LC_ALL=POSIX LFS_TGT=$(uname -m)-lfs-linux-gnu -PATH=/tools/bin:/bin:/usr/bin +PATH=$LFS/tools/bin:/bin:/usr/bin export LFS LC_ALL LFS_TGT PATH</literal> EOF</userinput></screen> @@ -61,7 +61,7 @@ EOF</userinput></screen> be used as soon as they are installed. By switching off the hash function, the shell will always search the <envar>PATH</envar> when a program is to be run. As such, the shell will find the newly compiled tools in - <filename class="directory">$LFS/tools</filename> as soon as they are + <filename class="directory">~/tools</filename> as soon as they are available without remembering a previous version of the same program in a different location.</para> </listitem> @@ -108,9 +108,9 @@ EOF</userinput></screen> </varlistentry> <varlistentry> - <term><parameter>PATH=/tools/bin:/bin:/usr/bin</parameter></term> + <term><parameter>PATH=$LFS/tools/bin:/bin:/usr/bin</parameter></term> <listitem> - <para>By putting <filename class="directory">/tools/bin</filename> ahead of the + <para>By putting <filename class="directory">$LFS/tools/bin</filename> ahead of the standard <envar>PATH</envar>, all the programs installed in <xref linkend="chapter-temporary-tools"/> are picked up by the shell immediately after their installation. This, combined with turning off hashing, limits the risk |