Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
After I create ~/.bash_profile and ~/.bashrc and then use the source command on ~/.bash_profile, according to the book, I should have a completely empty environment (except for the six variables created by the two ~/.bash* files). But by typing the env command, I see two extra variables (SHLVL=1 and PWD=/home/lfs). Additionally, and more troubling is when I then type in the set command, I see a ton of environment variables like COLUMNS=128 HISTSIZE=500 and stuff like that. The book clearly states that I should have a "completely empty environment", except of course for the six variables created by the new ~/.bash* files. What gives? Should I only be concerned with what the env command displays? Should I not be concerned about what the set command displays? And finally, is it possible or not to actually have a running Linux system where there are no environment variables set? Thanks a million! I've googled and searched LFS web site & couldn't find anything pertinant.
PS- I'm using Slackware 10.1 with kernel 2.6.9 as host.