Browse Source

Merged the bash --login and set +h directives

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2832 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Utley 22 years ago
parent
commit
e2bd9bf1ec
4 changed files with 10 additions and 4 deletions
  1. 3 0
      chapter01/changelog.xml
  2. 1 2
      chapter06/bash-inst.xml
  3. 5 0
      chapter06/chroot.xml
  4. 1 2
      chapter06/pwdgroup.xml

+ 3 - 0
chapter01/changelog.xml

@@ -94,6 +94,9 @@
 </itemizedlist>
 </itemizedlist>
 </para></listitem>
 </para></listitem>
 
 
+<listitem><para>September 17th, 2003 [jeremy]: Chapter 6 - changed 2 of the
+occurances of exec bash --login to include the +h directive. </para></listitem>
+
 <listitem><para>September 17th, 2003 [greg]: Chapters 5 and 6 - Locking in
 <listitem><para>September 17th, 2003 [greg]: Chapters 5 and 6 - Locking in
 Glibc and Re-adjusting the toolchain: Do "make -C ld install" instead of "make
 Glibc and Re-adjusting the toolchain: Do "make -C ld install" instead of "make
 -C ld install-data-local" to install a whole new linker instead of just the
 -C ld install-data-local" to install a whole new linker instead of just the

+ 1 - 2
chapter06/bash-inst.xml

@@ -29,7 +29,6 @@ following command will do so:</para>
 
 
 <para>And reload the newly compiled <userinput>bash</userinput> program:</para>
 <para>And reload the newly compiled <userinput>bash</userinput> program:</para>
 
 
-<para><screen><userinput>exec /bin/bash --login
-set +h</userinput></screen></para>
+<para><screen><userinput>exec /bin/bash +h --login</userinput></screen></para>
 
 
 </sect2>
 </sect2>

+ 5 - 0
chapter06/chroot.xml

@@ -26,6 +26,11 @@ to the same value as outside chroot; this variable is needed for programs
 like vim and less to operate properly. If you need other variables present,
 like vim and less to operate properly. If you need other variables present,
 such as CFLAGS or CXXFLAGS, this is a good place to set them again.</para>
 such as CFLAGS or CXXFLAGS, this is a good place to set them again.</para>
 
 
+<para>Also note the use of the set +h directive.  This tells bash to not use
+it's internal path hashing. Without this directive, bash will remember paths
+to binaries.  Since as we go thru chapter 6, we want to use our newly compiled
+binaries as soon as they are installed, we turn off this function.</para>
+
 <para>From this point on there's no need to use the LFS variable anymore,
 <para>From this point on there's no need to use the LFS variable anymore,
 because everything you do will be restricted to the LFS file system -- since
 because everything you do will be restricted to the LFS file system -- since
 what the shell thinks is <filename class="directory">/</filename> is actually
 what the shell thinks is <filename class="directory">/</filename> is actually

+ 1 - 2
chapter06/pwdgroup.xml

@@ -51,8 +51,7 @@ resolution will start working immediately after the
 created, because we installed a full glibc in Chapter 5.  This will get rid of 
 created, because we installed a full glibc in Chapter 5.  This will get rid of 
 the <quote>I have no name!</quote> prompt.</para>
 the <quote>I have no name!</quote> prompt.</para>
 
 
-<para><screen><userinput>exec /tools/bin/bash --login
-set +h</userinput></screen></para>
+<para><screen><userinput>exec /tools/bin/bash +h --login </userinput></screen></para>
 
 
 
 
 </sect1>
 </sect1>