PS1 = ' [EMAIL PROTECTED] '
case `id -u` in
     0) PS1='${PS1} # ';; # root
     *) PS1='${PS1} $ ';; # everyone else

When I log in, I am greeted with:
${PS1} $ $

$PS1 nie ${Ps1}


However, if I su to root, I get:
[EMAIL PROTECTED] /home/user]#

That is what I wanted, but for some reason it is not working for a
normal user.  I thought perhaps the problem could be that .bash_profile
is only loaded when a non-login shell is spawned, but a quick
consultation of man bash revealed that bash reads ~/.bash_profile when
it is invoked as a login shell.

My next thought was that it was a permissions issue, but:
su
chmod 777 .bash_profile
exit
logout
login

That did not change the results, the output was still the same as above.
This is all being done at the console, by the way.

Appreciate any advice,

montag
--------------------------
"Give the people contests they win by remembering the words to more popular songs or 
the names of state capitals or how much corn Iowa grew last year. Cram them full of 
non-combustible data, chock them so damned full of 'facts' they feel stuffed, but 
absolutely 'brilliant' with information. Then they'll feel they're thinking, they'll get 
a sense of motion without moving."

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to