On Wed, Oct 19, 2005 at 05:52:11PM +0200, Maarten Th. Mulders wrote:
> grep PS1 /etc/bashrc /etc/profile ~/.bash_profile ~/.bashrc gives:
> 
> /etc/bashrc:# PS1 Environment Variable for a great case study behind
> this script
> /etc/bashrc:#export PS1="[EMAIL PROTECTED] \w]\\$ "
> /etc/bashrc:export PS1='[EMAIL PROTECTED]:\w\$ '
> /etc/profile:#export PS1="[EMAIL PROTECTED] \w]\\$ "
> /etc/profile:export PS1='[EMAIL PROTECTED]:\w\$ '

Seems right, though I don't know why the book puts PS1 in /etc/profile
when ~/.bash_profile sources ~/.bashrc which sources /etc/bashrc. This
means that /etc/bashrc is called whether it is a login shell or not.

I also don't understand why there are 2 exports in each file with one
commented out.

I'm CC'ing blfs-dev for those questions. For your specific problem,
discussion should stay in blfs-support.

> echo $PS1 gives:
> 
> [EMAIL PROTECTED]:\w\$

That looks correct. Are you getting double prompt all the time? As root
and non-root? In console and xterm?

-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs

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

Reply via email to