I solved it!
Instead of using 'su -m' now I use 'su -m root -l'.
It seems that tcsh is launced by default as "interactive shell" while
ksh must be explicitly instructed with the '-l' flag.
Now, as "interactive shell", it re-read the .profile configuration with
aliases and all...
Thanks
O
On July 30, 2022 9:18:34 AM GMT+02:00, Federico Giannici
wrote:
>For historical reasons I always used the tcsh shell for my personal uses. Now
>I'd like to switch to the system sh (actually ksh), but I have a problem.
>
>Usually, on the servers I manage, I switch to root with "su -m", so I ca
For historical reasons I always used the tcsh shell for my personal
uses. Now I'd like to switch to the system sh (actually ksh), but I have
a problem.
Usually, on the servers I manage, I switch to root with "su -m", so I
can maintain my environment: path, prompt, aliases, etc.
With tcsh it
3 matches
Mail list logo