Originally posted by glock19
I added what you said, so now it looks like:
When I type echo $LFS I get nothing in response.
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
# User specific environment and startup programs
export USERNAME BASH_ENV PATH
Depending on the way you login, sometimes .bash_profile isn't read (say when you open an xterm that file isn't read normally speaking unless you make it a socalled login shell by adding a special option to xterm).
Add it to .bashrc as well to cover all bases (at least one of those two files is read no matter what kind of terminal you open).
Btw, don't write LFS=$LFS:/mnt/lfs but just LFS=/mnt/lfs
If you were to add this to both files, then you could end up with:
And when you go install something, $LFS won't work as expected since the /mnt/lfs:/mnt/lfs directory doesn't exist.