A suggestion as regards the commentary within the examples for /etc/profile and /etc/bashrc.
Text would be changed to have the filenames standing alone, rather than being run into the text, as well as to note that /etc/bashrc, which, although mentioned using a "System wide" comment, as with /etc/profile, does need to be explictly sourced. Basically, the commentary from the BLFS Book is being put into the example files so that it is not lost after being deployed. Suggested text: /etc/profile # System wide environment variables and startup programs. # System wide aliases and functions, which still need to be explictly # sourced from within a personal startup file, should go into # /etc/bashrc. # Personal environment variables and startup programs should go into # ~/.bash_profile. # Personal aliases and functions should go into # ~/.bashrc. Suggested text: /etc/bashrc # System wide aliases and functions # (These still need to be explictly sourced from within a personal # startup file) # System wide environment variables and startup programs should go into # /etc/profile. # Personal environment variables and startup programs should go into # ~/.bash_profile.s # Personal aliases and functions should go into # ~/.bashrc Patch against BLFS revision 22992 attached, in case the above is thought to be of benefit. Kevin
Index: postlfs/config/profile.xml =================================================================== --- postlfs/config/profile.xml (revision 22992) +++ postlfs/config/profile.xml (working copy) @@ -120,10 +120,13 @@ # System wide environment variables and startup programs. -# System wide aliases and functions should go in /etc/bashrc. Personal -# environment variables and startup programs should go into -# ~/.bash_profile. Personal aliases and functions should go into -# ~/.bashrc. +# System wide aliases and functions, which still need to be explictly +# sourced from within a personal startup file, should go into +# /etc/bashrc. +# Personal environment variables and startup programs should go into +# ~/.bash_profile. +# Personal aliases and functions should go into +# ~/.bashrc. # Functions to help us manage paths. Second argument is the name of the # path variable to be modified (default: PATH) @@ -476,11 +479,15 @@ # updated by Bruce Dubbs <bdubbs@&lfs-domainname;> # System wide aliases and functions. +# (These still need to be explictly sourced from within a personal +# startup file) # System wide environment variables and startup programs should go into -# /etc/profile. Personal environment variables and startup programs -# should go into ~/.bash_profile. Personal aliases and functions should -# go into ~/.bashrc +# /etc/profile. +# Personal environment variables and startup programs should go into +# ~/.bash_profile. +# Personal aliases and functions should go into +# ~/.bashrc # Provides colored /bin/ls and /bin/grep commands. Used in conjunction # with code in /etc/profile.
-- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page