|
@@ -12,9 +12,9 @@ startup files for the <command>bash</command> shell. While logged in as
|
|
user <emphasis>lfs</emphasis>, issue the following command to create a new
|
|
user <emphasis>lfs</emphasis>, issue the following command to create a new
|
|
<filename>.bash_profile</filename>:</para>
|
|
<filename>.bash_profile</filename>:</para>
|
|
|
|
|
|
-<screen><userinput>cat > ~/.bash_profile << "EOF"</userinput>
|
|
|
|
|
|
+<screen><userinput>cat > ~/.bash_profile << <quote>EOF<quote>
|
|
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
|
|
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
|
|
-<userinput>EOF</userinput></screen>
|
|
|
|
|
|
+EOF</userinput></screen>
|
|
|
|
|
|
<para>Normally, when you log on as user <emphasis>lfs</emphasis>,
|
|
<para>Normally, when you log on as user <emphasis>lfs</emphasis>,
|
|
the initial shell is a <emphasis>login</emphasis> shell which reads the
|
|
the initial shell is a <emphasis>login</emphasis> shell which reads the
|
|
@@ -32,14 +32,14 @@ which doesn't read the <filename>/etc/profile</filename> or
|
|
<filename>.bash_profile</filename> files, but reads the
|
|
<filename>.bash_profile</filename> files, but reads the
|
|
<filename>.bashrc</filename> file instead. Create this latter file now:</para>
|
|
<filename>.bashrc</filename> file instead. Create this latter file now:</para>
|
|
|
|
|
|
-<screen><userinput>cat > ~/.bashrc << "EOF"</userinput>
|
|
|
|
|
|
+<screen><userinput>cat > ~/.bashrc << <quote>EOF<quote>
|
|
set +h
|
|
set +h
|
|
umask 022
|
|
umask 022
|
|
LFS=/mnt/lfs
|
|
LFS=/mnt/lfs
|
|
LC_ALL=POSIX
|
|
LC_ALL=POSIX
|
|
PATH=/tools/bin:/bin:/usr/bin
|
|
PATH=/tools/bin:/bin:/usr/bin
|
|
export LFS LC_ALL PATH
|
|
export LFS LC_ALL PATH
|
|
-<userinput>EOF</userinput></screen>
|
|
|
|
|
|
+EOF</userinput></screen>
|
|
|
|
|
|
<para>The <command>set +h</command> command turns off
|
|
<para>The <command>set +h</command> command turns off
|
|
<command>bash</command>'s hash function. Normally hashing is a useful
|
|
<command>bash</command>'s hash function. Normally hashing is a useful
|
|
@@ -68,7 +68,7 @@ environment and wish to return later. By setting LC_ALL to <quote>POSIX</quote>
|
|
(or <quote>C</quote>, the two are equivalent) we ensure that
|
|
(or <quote>C</quote>, the two are equivalent) we ensure that
|
|
everything will work as expected in the chroot environment.</para>
|
|
everything will work as expected in the chroot environment.</para>
|
|
|
|
|
|
-<para>We prepend <filename>/tools/bin</filename> to the standard PATH so
|
|
|
|
|
|
+<para>We prepend <filename class="directory">/tools/bin</filename> to the standard PATH so
|
|
that, as we move along through this chapter, the tools we build will get used
|
|
that, as we move along through this chapter, the tools we build will get used
|
|
during the rest of the building process.</para>
|
|
during the rest of the building process.</para>
|
|
|
|
|