The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 problems with exporting PS1 when going su
Author: apv 
Date:   25-12-01 09:21

Hi all,

can anyone explain me why PS1 of root doesn't want to export?

When I make "su", PS1 is unchanged!
FreeBSD 4.0, bash-2.03

~user/.profile:

[cut]
PS1="\u:\w$ "
export PS1
[cut]

/root/.profile:

[cut]
PS1="\u:\w# "
export PS1
[cut]

I also tried the script in .profile with checking user's id, but there's no result again.

Strange, there's no such problem under Linux...

Reply To This Message
 
 Re: problems with exporting PS1 when going su
Author: Dan Langille 
Date:   25-12-01 09:48

Stop assuming that what you see under Linux is correct.

You are running the bash shell. Put that stuff in .bash_profile. You may also have to symlink .bashrc to .bash_profile.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org