Hamish Moffatt <[EMAIL PROTECTED]> wrote: > On Tue, Mar 09, 1999 at 09:28:14AM -0600, ktb wrote: > > If your prompt is a "$" you are not logged in as root. This is the regular > > user > > Not necessarily true. > > [8:46pm] [EMAIL PROTECTED]:~> su - > Password: > /local/home/root$ > /local/home/root$ logout > [8:46pm] [EMAIL PROTECTED]:~> > > > My prompt is set in ~root/.profile to > PS1="\w\$ " > > >From the bash manual page: > > \$ if the effective UID is 0, a #, otherwise a > $ > > Goodness knows why this doesn't work.
You have to escape the $ - try this: PS1="\w\\\$ " or this PS1='\w\$ ' > Hamish HTH, Thomas -- Thomas Köhler Email: [EMAIL PROTECTED] <>< WWW: http://home.pages.de/~jeanluc/ IRC: jeanluc LCARS --- Linux for Computers on All Real Starships