From 4e2645304c69a42ce1cfa028904c7aef7db6b975 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Fri, 28 Oct 2022 11:37:59 -0500 Subject: Standardize spelling of "cross-compile" and its derivatives. Clean up English idiom. Remove some superfluous verbiage here and there. --- chapter04/settingenviron.xml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml index a57246217..d801aa9ab 100644 --- a/chapter04/settingenviron.xml +++ b/chapter04/settingenviron.xml @@ -19,9 +19,9 @@ exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash EOF - When logged on as user lfs - or switched to the &lfs-user; user using a su command - with - option, + When logged on as user lfs, + or when switched to the &lfs-user; user using an su command + with the - option, the initial shell is a login shell which reads the /etc/profile of the host (probably containing some settings and environment variables) and then .bash_profile. @@ -30,8 +30,7 @@ EOF one with a completely empty environment, except for the HOME, TERM, and PS1 variables. This ensures that no unwanted and potentially hazardous environment variables from the host system - leak into the build environment. The technique used here achieves the goal of - ensuring a clean environment. + leak into the build environment. The new instance of the shell is a non-login shell, which does not read, and execute, the contents of the /etc/profile or @@ -100,7 +99,7 @@ EOF programs, making their messages follow the conventions of a specified country. Setting LC_ALL to POSIX or C (the two are equivalent) ensures that everything will work as expected in - the chroot environment. + the cross-compilation environment. @@ -108,8 +107,8 @@ EOF LFS_TGT=(uname -m)-lfs-linux-gnu The LFS_TGT variable sets a non-default, but compatible machine - description for use when building our cross compiler and linker and when cross - compiling our temporary toolchain. More information is contained in + description for use when building our cross-compiler and linker and when + cross-compiling our temporary toolchain. More information is provided by . @@ -132,7 +131,7 @@ EOF if [ ! -L /bin ]; then PATH=/bin:$PATH; fi If /bin is not a symbolic - link, then it has to be added to the PATH variable. + link, it must be added to the PATH variable. @@ -163,7 +162,7 @@ EOF export ... - While the above commands have set some variables, in order + While the preceding commands have set some variables, in order to make them visible within any sub-shells, we export them. @@ -172,7 +171,7 @@ EOF - Several commercial distributions add a non-documented instantiation + Several commercial distributions add an undocumented instantiation of /etc/bash.bashrc to the initialization of bash. This file has the potential to modify the lfs @@ -185,9 +184,9 @@ EOF [ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE - After use of the lfs - user is finished at the beginning of , you can restore + When the lfs + user is no longer needed (at the beginning of ), you may safely restore /etc/bash.bashrc (if desired). Note that the LFS Bash package we will build in @@ -196,7 +195,7 @@ EOF completed LFS system. - Finally, to have the environment fully prepared for building the + Finally, to ensure the environment is fully prepared for building the temporary tools, force the bash shell to read the new user profile: -- cgit v1.2.3-54-g00ecf