Archaic wrote:
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.


Don't know about the 1st question, but the reason there are 2 PS1 exports in each file is because each PS1 is slightly different (the one that's commented out just adds [ ] around the prompt).
--
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