diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 07ed16a59..2ca887fbe 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -45,6 +45,9 @@
+December 11th, 2003 [greg]: Chapter 5: - Setting up the
+environment: Fixed Bash startup files to handle HOME and PS1.
+
December 3rd, 2003 [greg]: Upgraded to Gettext-0.13,
Man-pages-1.64, Linux-2.4.23 and Psmisc-21.4.
diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml
index 6ae7a7d4f..5b7a35970 100644
--- a/chapter05/chapter05.xml
+++ b/chapter05/chapter05.xml
@@ -352,17 +352,18 @@ startup files for the Bash shell. While logged in as user
.bash_profile:
cat > ~/.bash_profile << "EOF"
-exec env -i TERM=$TERM /bin/bash
+exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF
-The exec env -i TERM=$TERM /bin/bash command
-creates a new instance of Bash with a completely empty environment, except for
-the TERM variable. This is needed to ensure that no unwanted and potentially
-hazardous environment variables from the host system leak into our build
-environment. The technique used here is a little non-standard but it achieves
-the goal of enforcing a clean environment. By way of explanation, the initial
-shell is a login shell which reads the
-.bash_profile. The new shell instance is a
+The
+exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
+command creates a new instance of Bash with a completely empty environment,
+except for the HOME, TERM and PS1 variables. This is needed to ensure that no
+unwanted and potentially hazardous environment variables from the host system
+leak into our build environment. The technique used here is a little
+non-standard but it achieves the goal of enforcing a clean environment. By way
+of explanation, the initial shell is a login shell which
+reads the .bash_profile. The new shell instance is a
non-login shell which reads the
.bashrc (created next).
@@ -391,7 +392,7 @@ the newest available version during the build process.
Setting the user file-creation mask to 022 ensures that newly created
files and directories are only writable for their owner, but readable and
executable for anyone.
-
+
The LFS variable should of course be set to the mount point you
chose.
diff --git a/index.xml b/index.xml
index 80b6dec97..b4b0d1d1c 100644
--- a/index.xml
+++ b/index.xml
@@ -3,8 +3,8 @@
"/usr/share/docbook/docbookx.dtd" [
-
-
+
+