Hello everybody!

I have found a few issues with the configuration chapters in LFS and BLFS.

1. In chapter  7.9. The Bash Shell Startup Files from the LFS book we create 
the /etc/profile file but in the BLFS book we create the same file with
different content.

Not a big problem because it's clear that the file from BLFS contains a more 
advanced configuration but shouldn't it be noted in the LFS book that this 
file will be changed later in the BLFS book?


2. In the chapter  The Bash Shell Startup Files from the BLFS book:

/etc/profile contains 
#export PS1="[EMAIL PROTECTED] \w]\\$ "
export PS1='[EMAIL PROTECTED]:\w\$ '

/etc/profile.d/extra-prompt.sh contains
PROMPT_COMMAND='echo -ne "[EMAIL PROTECTED] : ${PWD}\e[0m\a"'
export PROMPT_COMMAND

/etc/bashrc contains
#export PS1="[EMAIL PROTECTED] \w]\\$ "
export PS1='[EMAIL PROTECTED]:\w\$ '

If I leave these lines as they are I have the next problem.
When I enter chroot the prompt is:   @lfs-test : /[EMAIL PROTECTED]:/# 
If I reboot and login the prompt becomes: [EMAIL PROTECTED] : /[EMAIL 
PROTECTED]:/#
with the first [EMAIL PROTECTED] : in bright white or bold.

Maybe because of my poor English I missed something from the explanations on 
this 
page but this does not seem right.

I choose to comment all these lines except the one from /etc/profile and now I 
get [EMAIL PROTECTED]:/# as my prompt.


3. When I login on a console or use the su - command I don't have the 
history of previous of the previous entered commands when I press the up or 
down arrow.

@lfs-test : /[EMAIL PROTECTED]:/# history
    1  history

@lfs-test : /[EMAIL PROTECTED]:/# cat ~/.bash_history
<skip a lot of commands>
cd ../linux_headers/linux-2.6.21.1
make
make modules_install
ls        /
cp arch/i386/boot/bzImage /boot/
ls /
ls / -l
locale -a

If I enter commands from now I can access them but they don't get added to the 
.bash_history file.

If I use su without the dash everything is like it should be.

This seems to be because of unset HISTFILE line from /etc/profile.
Maybe this is a desired behavior, I did not search in the mail list.

Thanks for your time.


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to