okay...
Code:
scott@myhost/~ # su<cr>
Password:
$
the su(1) shell fails to receive the custom PS1 environment variable in the spawned su(1) shell.
Whereas,
Code:
scott@myhost/~ # su - <cr>
Password:
root@myhost/~ $
correctly exports my custom PS1 ('\u@\h/\w\$ ' in green) and other environment variables to the spawned su(1) shell.
I don't know if this (typing the "-") is the best/right answer. Any expertise in the matter welcomed! I'd still like to know what shell script is controlling the entry to su(1).
Cheers,
/S