When logging into root, the default prompt when echoed is \s-\v\$, which shows as bash-4.2#. I am trying to play around with the bash prompt so it displays the working directory.
export PS1="\w \$".
The prompt displays correctly, however, the symbol \$ does not transform into a #, even though my $UID is 0, which kind of defeats the purpose of omitting the user symbol \u. Is there something extra I have to add, or does that symbol not work if I export it?