From e2bd9bf1ec06ebbdb21527843e0caa42e57cab43 Mon Sep 17 00:00:00 2001 From: Jeremy Utley Date: Wed, 17 Sep 2003 18:06:39 +0000 Subject: Merged the bash --login and set +h directives git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2832 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chroot.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chapter06/chroot.xml') diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index 195242c35..2259dc7a4 100644 --- a/chapter06/chroot.xml +++ b/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, such as CFLAGS or CXXFLAGS, this is a good place to set them again. +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. + 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 what the shell thinks is / is actually -- cgit v1.2.3-54-g00ecf