Re: csh to sh migration for root in RELENG_14
- In reply to: Freddie Cash : "Re: csh to sh migration for root in RELENG_14"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Nov 2023 18:52:37 UTC
On 11/17/2023 1:46 PM, Freddie Cash wrote: > > su by itself just switches your username, it doesn't pick up the rest > of the environment settings like a proper login does. OK, but its doing something. When I ssh into my account, I have setup things like my prompt to be PS1="- $? \u@\h:\w \\$ " But when I just "su" by it self, my prompt changes. So its picking up the new prompt somewhere else ? Where is that being set ? I tried /etc/profile but nada e.g. - 0 mike@mfitest1:~ $ echo $PS1 - 0 \u@\h:\w \$ - 0 mike@mfitest1:~ $ - 0 mike@mfitest1:~ $ su Password: # # echo $PS1 # # PS1 being just "#" now ---Mike