You are not logged in.

#1 2008-03-24 16:51:39

Endperform
Member
From: Atlanta GA, USA
Registered: 2007-09-04
Posts: 94
Website

Root bash prompt after update

I noticed something weird with my root prompt after the latest upgrade.  Before, it used to be this:

[root@dethklok /etc]#

now, it's:

;root@dethklok:/etc[root@dethklok /etc]#

I haven't changed anything as far as PS1 goes in either my .bashrc or root's.  Any ideas?

Offline

#2 2008-03-24 17:10:35

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Root bash prompt after update

What is the value of $PS1; and where is that value coming from. And which package upgrade caused this?

Offline

#3 2008-03-24 17:18:26

Endperform
Member
From: Atlanta GA, USA
Registered: 2007-09-04
Posts: 94
Website

Re: Root bash prompt after update

echo $PS1
[\u@\h \W]\$

As for which package, good question.  It's been a while since I've done an upgrade on the box in question.

Offline

#4 2008-03-24 17:27:47

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Root bash prompt after update

Might it be your $PROMPT_COMMAND that is corrupt?

Offline

#5 2008-03-24 17:36:01

Endperform
Member
From: Atlanta GA, USA
Registered: 2007-09-04
Posts: 94
Website

Re: Root bash prompt after update

Turns out that was it.  I'm not sure what controls that, though, but putting 'unset PROMPT_COMMAND' in /root/.bashrc resolved it.

Offline

Board footer

Powered by FluxBB