Ignore:
Timestamp:
09/27/2022 06:07:58 PM (19 months ago)
Author:
David Bryant <davidbryant@…>
Branches:
11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
ef93b66
Parents:
2646c57
Message:

Tweaked English idiom / clarified directiions in chapters 4.3 and 4.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter04/settingenviron.xml

    r2646c57 rec7b0466  
    3333
    3434  <para>The new instance of the shell is a <emphasis>non-login</emphasis>
    35   shell, which does not read, and execute, the contents of <filename>/etc/profile</filename> or
     35  shell, which does not read, and execute, the contents of the <filename>/etc/profile</filename> or
    3636  <filename>.bash_profile</filename> files, but rather reads, and executes, the
    3737  <filename>.bashrc</filename> file instead. Create the
     
    6060  <command>bash</command>'s hash function. Hashing is ordinarily a useful
    6161  feature&mdash;<command>bash</command> uses a hash table to remember the
    62   full path of executable files to avoid searching the <envar>PATH</envar>
     62  full path to executable files to avoid searching the <envar>PATH</envar>
    6363  time and again to find the same executable. However, the new tools should
    64   be used as soon as they are installed. By switching off the hash function,
    65   the shell will always search the <envar>PATH</envar> when a program is to
     64  be used as soon as they are installed. Switching off the hash function forces
     65  the shell to search the <envar>PATH</envar> whenever a program is to
    6666  be run. As such, the shell will find the newly compiled tools in
    6767  <filename class="directory">$LFS/tools/bin</filename> as soon as they are
     
    116116      <term><parameter>PATH=/usr/bin</parameter></term>
    117117      <listitem>
    118   <para>Many modern linux distributions have merged <filename
     118  <para>Many modern Linux distributions have merged <filename
    119119  class="directory">/bin</filename> and <filename
    120120  class="directory">/usr/bin</filename>. When this is the case, the standard
    121   <envar>PATH</envar> variable needs just to be set to <filename
     121  <envar>PATH</envar> variable should be set to <filename
    122122  class="directory">/usr/bin/</filename> for the <xref
    123123  linkend="chapter-temporary-tools"/> environment. When this is not the
     
    142142  of <xref linkend="chapter-cross-tools"/> is picked up by the shell
    143143  immediately after its installation. This, combined with turning off hashing,
    144   limits the risk that the compiler from the host be used instead of the
     144  limits the risk that the compiler from the host is used instead of the
    145145  cross-compiler.</para>
    146146      </listitem>
     
    196196
    197197  <para>Finally, to have the environment fully prepared for building the
    198   temporary tools, source the just-created user profile:</para>
     198  temporary tools, force the <command>bash</command> shell to read
     199  the new user profile:</para>
    199200
    200201<screen><userinput>source ~/.bash_profile</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.