On 10/19/05, Maarten Th. Mulders <[EMAIL PROTECTED]> wrote:
> grep PS1 /etc/bashrc /etc/profile ~/.bash_profile ~/.bashrc gives:
> echo $PS1 gives:
>
>
> >[EMAIL PROTECTED]:\w\$

I'm telling you, it's the variable PROMPT_COMMAND.  If his prompt is
[EMAIL PROTECTED] : /[EMAIL PROTECTED]:~#
                             ^^^^^^^^^^^^^^^^^^^^
This is PS1='[EMAIL PROTECTED]:\w' with # instead of $ since he's root in this
one.  From BLFS, /etc/profile.d/extra-prompt.sh:

PROMPT_COMMAND='echo -ne "[EMAIL PROTECTED] : ${PWD}\e[0m\a"'
export PROMPT_COMMAND

Which would give [EMAIL PROTECTED] : /root.  Which would essentially make the 
prompt:
$PROMPT_COMMAND$PS1

The problem is PROMPT_COMMAND, as I know, is supposed to show up in
the title of a terminal.  Unfortunately, in current BLFS (6.1), I
don't believe it works.  There was another post a while back about
this.  Ah, now I've found it
http://linuxfromscratch.org/pipermail/blfs-dev/2005-September/011488.html

There's not a solution given in that thread, but I think this is the
situation the poster is seeing.  Try
mv /etc/profile.d/extra-prompt.sh{,.off}

--
Dan
--
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