Matthias B. msbREMOVE-THIS at
Thu Sep 16 04:52:11 PDT 2004

On Wed, 15 Sep 2004 15:56:49 -0600 (MDT) Scott Swanson
<DrMemory at> wrote:

> On Wed, 15 Sep 2004, Scott Swanson wrote:
> > 
> > + echo .bashrc
> > .bashrc
> > + exec env -i HOME=/home/lfs TERM=linux PS1='\u:\w\$ ' /bin/bash
> correction:
>   + exec env -i HOME=/home/lfs TERM=linux 'PS1=\u:\w\$ ' /bin/bash

Is there a special reason why you placed the quotes different from the
command in the book? I don't think that could be responsible for your
problem, but you never know.

Anyways, I still have no idea what's happening, but I've not run out of
ideas, yet :-)

1. What happens when you remove the "exec" from the above command, i.e. if
you use

env -i HOME=/home/lfs TERM=linux PS1='\u:\w\$ ' /bin/bash

Does the shell still hang? Post the relevant part of ps axlfwww. 

2. What happens when you replace the whole command with

HOME=/home/lfs TERM=linux PS1='\u:\w\$ ' /bin/bash

3. What happens when you use

HOME=/home/lfs TERM=linux PS1='\u:\w\$ ' exec /bin/bash

4. Go to /tmp, extract the bash-tarball, cd into the bash-<version>
directory and build bash (as normal user):

./configure && make

Then replace the command in .bash_profile with 

exec env -i HOME=/home/lfs TERM=linux PS1='\u:\w\$ '

All on a single line, of course and <version> needs to be replaced with
whatever version of bash you've built for this test.


Happiness through ignorance!

More information about the lfs-support mailing list