Wrong interpretation og '\$' by bash?
Hello everybody,
I have the following lines in ~/.bash_prompt (for all users):
------------------------------------------------------
# set prompt and window title (if running in X terminal)
case $TERM in
xterm*)
PS1="\[\033]0;\$\w/\007\]\$\w/: "
;;
*)
PS1="\$\w/: "
;;
esac
------------------------------------------------------
The problem is, that when I log in as a root, '$' is displayed
instead of '#'.
Why is that so - '\$' is supposed to display '#' if the effective
uid is 0, and how it can be corrected?
Daniel.
Reply to: