The bash manpage states that "\$" embedded in the prompt will expand to
"#" for root, or "$" for any other user. However, when I use it, it
to "$" regardless of who I am.
This isn't major critical, but I'll suspect there is a one liner of code in
that is gone bad. Please inform me if it is fixed or not, or will be fixed
If not, since it isn't anything mind blowing, I'll fix it myself if
It actually works here...
We're making use of \$ in bashrc - don't you get a "[root@hostname]#" prompt,
when logging in as root?
You're probably being hit by the fact that \ is a general escape character (did
you do something along the lines of PS1="\$"?)...
PS1="something\\$" (the first backslash is an escape character!)