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 expands to "$" regardless of who I am. This isn't major critical, but I'll suspect there is a one liner of code in bash that is gone bad. Please inform me if it is fixed or not, or will be fixed soon. If not, since it isn't anything mind blowing, I'll fix it myself if possible.. TIA
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="\$"?)... Try: PS1="something\\$" (the first backslash is an escape character!) or PS1='something\$'