[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New Install



Hamish Moffatt <hamish@debian.org> 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] hamish@silly:~> su -
> Password:
> /local/home/root$ 
> /local/home/root$ logout
> [8:46pm] hamish@silly:~> 
> 
> 
> 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:     jean-luc@picard.franken.de
        <><           WWW:    http://home.pages.de/~jeanluc/
                      IRC:               jeanluc
      LCARS --- Linux for Computers on All Real Starships


Reply to: