Is this a great list or what....!


My initial post:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> I am running Solaris 2.5.1 on a Sparc10 with CDE 1.1 installed.  My
default

> shell is ksh.  I put a line at the top of my .profile file that echos
the

> fact that

> I am executing it.  I put my aliases at the bottom of the file like
this:

> 

>      alias su='/bin/su -'

> 

> When I come up, I have CDE restore my home session rather than
continue

> my last session.  I bring up a console and a terminal window.  In the
console

> window, I see the line indicating .profile execution and my aliases are
set

> up when I look at them with the alias command.  In the terminal, I do
not see

> the line indicating .profile execution and my aliases are not set when
I look

> for them.  I have environment variables in between and they are correct
for

> both the console and the terminal.

> 

> Can anyone tell me what's happening?  I have un commented the line in

> .dtprofile

> DTSOURCEPROFILE=true.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


The answer(s):


<bold>Stephen Harris</bold> and <bold>Eileen Schatz</bold> (this is the
one I like the best because all I

have to do is click on that little monitor icon on the CDE desktop and
everything

works - also works for open and x windows when simply opening another
window...)


Aliases in .profile don't take effect _except_ in login shells.

In ,profile you need to define ENV=$HOME/.kshrc and then put all 
aliases

in .kshrc.  They will then appear in _all_ ksh windows.


Remember: .profile is only run in login shells!








NASA Goddard Space Flt. Ctr. - RMS Information Systems, Inc.

Data Systems & Technology Division - System Administrator

Thomas.M.Erickson.1@gsfc.nasa.gov

301.286 1439  ('ma-bell)

301.286 1768  (fax)



