1
vote
1answer
1k views

Why .bash_profile couldn't set PS1 variable?

I set .bash_profile to exec env -i HOME=$HOME TERM=vt100 PS1='\h' /bin/bash But when I login, it also show: lfs@sam:~$ env TERM=vt100 PWD=/home/lfs ...
1
vote
1answer
75 views

Why lfs couldn't use original host environment variables?

From the lfs doc: The exec env -i.../bin/bash command in the .bash_profile replaces the running shell with a new one with a completely empty environment, except for the HOME, TERM, and ...