I have a customized PS1 to show several parameters. When I switch to a different group using
newgrp, it switched my PS1 to default ($) and that is annoying. The default remains even when I switch back to my default group from the changed group.
Any way to stop it from doing that and just keep the PS1 I set in my .profile?
>uname -a SunOS he2unx207 5.10 Generic_147440-19 sun4u sparc SUNW,Sun-Fire-880
Of course, if I resource my .profile after newgrp, the PS1 gets correctly applied but I am annoyed because newgrp effectively cancels what was set in .profile. Why can't it just change the effective group I am associated with without changing other settings?