On 4/27/20 10:25 PM, Kevin Buckley via blfs-dev wrote:
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.
Thanks for the input, but I like the way we have it now better. As far
as sourcing /etc/bashrc goes, we do that in ~/.bashrc. If a user does
not want to use it then its their distro.
On the other hand, I've been thinking about enabling use of
/etc/bash.bashrc to automatically source that file without it being
sourced in ~/.bashrc. That would require a sed to config-top.h to
uncomment the line:
/* #define SYS_BASHRC "/etc/bash.bashrc" */
in config-top.h. It's curious that there is no configure option to do
that, at least none that I can find.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page