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 works perfectly, but if I use sh (ksh) all the aliases are
lost in the root environment.
Is it expected this different behavior between tcsh and ksh?
Is there a way to maintain the aliases when i do "su -m" with sh?
Is there some kind of "exportation" of aliases? In the ksh man page it
says that the "-x" option of alias "sets the export attribute of an
alias", but it doesn't seem to have any effect. How is it supposed to work?
Thanks.
P.S.
I'm talking about OpenBSD amd64 7.0 and 7.1.