But oddly the problem when using `su - lfs` comes from .bash_profile, containing
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$
' /bin/bash
as defined in the book.Using `su lfs` then cd home and `source .bash_profile` or executing manually `exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash` both works.
Bash version is
GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
The error goes like this:
root@LFSDebian:~# su - lfs
[3]+ Stopped su - lfs
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style