SUMMARY: ksh aliases for dtterm

Tom Erickson (Thomas.M.Erickson.1@gsfc.nasa.gov)
Tue, 09 Dec 1997 11:36:28 -0800

Ooopppppsssss - obviously hit the wrong key character combination....

and this IS a great list!

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) and <bold>Thank you all:

</bold>

<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!

<bold>Eileen </bold>also pointed me to the Sunsolve web site where there
is more information

about this - sunsolve1.sun.com

<bold>Shriman Gurung </bold>and <bold>Jim McVey </bold>both said to start
dtterm with the -ls flag which

will force reading the .profile and .kshrc file. This indeed works fine.
I still need the

.kshrc file though and unless I figure out how dtterm is started by that
little monitor

icon (which is probably fairly easy :)), I have to open all of my dtterm
windows from

a command line.

Also responding were: <bold>Viet Hoang

Joel Lee

Joe Yao</bold>

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)