Le vendredi 20 avril à 22:54, Bruce Dubbs a écrit :
> Philippe Delavalade wrote:
> > Hi.
> >
> > I'm building svn-9812 ; my host is debian/wheezy ; I encounter for the
> > first time a little problem in 4.4.
> >
> > When becoming user lfs and after having passed the command
> >
> > source .bash_profile
> >
> > I don't obtain the right prompt ; all variables are correct except PS1
> > which is
> >
> > PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$
> >
> > Maybe it's not important (and I think so) but nevertheless, I fear that
> > this uncorrect value can hide other problems...
>
> Lets see what you have for ~/.bashrc and ~/.bash_profile
>
> ~/.bash_profile should be one line:
>
> exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
>
> The -i starts with an empty envronment and then sets PS1 when running a new
> instance of bash.
.bashrc and .bash_profile are exactly those of the book :-(
My only deviation from the book is to have given a specific gid and uid to
lfs when executing groupadd and useradd, but I think it's not the reason
why PS1 goes wrong.
--
Ph. Delavalade
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page