[SunHELP] CDE, .profile & aliases
DAUBIGNE Sebastien - BOR ( SDaubigne@bordeaux-bersol.sema.slb.com )
SDaubigne at bordeaux-bersol.sema.slb.com
Tue Aug 27 03:55:00 CDT 2002
Xterm probably launch the ksh process AFTER sourcing the .profile, so you
keep the environnement variables, but you loose the aliases.
The solution is to use the ENV variable, which points to a script (usually
~/.kshrc) that ksh will source everytime it starts.
For instance, include this in .profile :
ENV=~/.kshrc
export ENV
Then, create a ~/.kshrc file which contains all the aliases.
---
Sebastien DAUBIGNE
sdaubigne at bordeaux-bersol.sema.slb.com <mailto:sebastien.daubigne at sema.fr>
- (+33)5.57.26.56.36
SchlumbergerSema - SGS/DWH/Pessac
-----Message d'origine-----
De: Markham, Richard [SMTP:RMarkham at hafeleamericas.com]
Date: mardi 27 aot 2002 00:19
: Sunhelp (E-mail)
Objet: [SunHELP] CDE, .profile & aliases
I am having an issue where a user's aliases (within ~/.profile)
are appearing to not be set after logging in through CDE. I
have verified the DTSOURCEPROFILE=true setting in ~/.dtprofile
and have tried the alias -x switch. Any variables in the same
~/.profile are being set as expected, so for now it seems my
only issue is that when I go start an xterm this users custom
aliases are not there. If I manually source the ~/.profile
then the aliases are created. The user's shell is /bin/ksh.
Any ideas?
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list