.profile not reading .kshrc

Can anyone tell me why .profile would not be reading my .kshrc file?

O/S is SCO 5.06? I've placed echo's before & after setting ENV and
nothing ... help?

Thanks!

Here's .profile

==================================================
:
# DoubleVision Pro's digiboard call during login...
[ -x /usr/lib/dv/digi_trigger ] && /usr/lib/dv/digi_trigger
# @(#) root.profile 88.2 99/12/21
#
# Copyright (C) 1989-1999 The Santa Cruz Operation, Inc.
# All Rights Reserved.
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# this notice and the associated copyright notice with any such product.
# The information in this file is provided "AS IS" without warranty.
#

SHELL=/bin/ksh
HOME=/usr/space
PATH=$PATH:/etc:/tcb/bin
PFPRINTER=hp_accting
PFPROG=/u/appl
PFDATA=/u
PFDIR=/appl
export PFPRINTER PFPROG PFDATA PFDIR
# set terminal type
# eval `tset -m scoansi:${TERM:-scoansi} -m :\?${TERM:-scoansi} -e -r -s -Q`
export TERM PATH SHELL HOME
[ -x /bin/termtype ] && /bin/termtype

[ -x /bin/mesg ] && mesg n # if mesg is installed...

echo "$HOME/.kshrc"

if [ -f $HOME/.kshrc -a -r $HOME/.kshrc ]; then
ENV='${_ENVFILE[(_=1)+(_$-=0)-_${-%%*i*}]}'
_ENVFILE=/.kshrc
export ENV _ENVFILE
fi

uptime
echo " "
dfspace
echo " "
cat /etc/motd
echo

==========================================================
And here's the .kshrc file

#!/bin/ksh
# @(#) root.kshrc 88.2 99/12/21
#
# Copyright (C) 1989-1999 The Santa Cruz Operation, Inc.
# All Rights Reserved.

export SHELL=/bin/ksh

# set vi mode (Arrow fnkys not supported in this mode) when ksh
# interactive and VISUAL|EDITOR contain "vi" or vi mode already set.
# Setup support for (ansi) arrow fnkeys (and emacs mode) when ksh interactive
# and VISUAL|EDITOR not contain vi and vi mode not set or emacs mode is.
# Don't do any of this if $_noAUTOFNKEYS is set to anything.
if [[ -z "$_noAUTOFNKEYS" ]] ; then
em=${VISUAL:-EDITOR}
[[ -o vi ]] && em=vi
[[ -o emacs ]] && em=emacs
[[ -o gmacs ]] && em=off
em=${em:-"emacs"}
# echo "$-:${em}"
case "$-:${em}" in
*i*: off) ;;
*i*:*vi* )
# echo "** ksh -o vi (interactive)"
set -o vi
;;
*i* )
# echo "** ksh -o emacs (interactive)"
set -o emacs
# Ansi (console/scoterm/xterm) Fnkey sequences
alias __A='^P' # UpArr
alias __B='^N' # DwnArr
alias __C='^F' # RghtArr
alias __D='^B' # LftArr
alias __H='^A' # Home
alias __F='^E' # End
_TAB_Complete=1 # enable Tab completion as well as Esc,Esc
;;
esac
fi

alias mc='cd `mc -caP`'
alias mcedit='mcedit -ca'
export PS1="SCO_SV:\$PWD # "

First I would check permissions of the .kshrc file to make sure it can be executed
Second. why don't you call the .kshrc file in the .profile with
. .kshrc

Thanks ...

Looked at that ... perms are set correctly.
I tried calling the .kshrc from with .profile and still nothing.

I did place echos from with the .kshrc file; get the echo's but the
environment is still not being customized.

I know it has to be something real stupid and right in front
of my face.

if it's not ksh, then a lot of the commands in the .kshrc make it invalid, also did you try using the '.' as I mentioned.
I see the first script starts with ':' meaning that it is the regular shell. if the user is supposed to use ksh, set it in the password file and change the : to #!/bin/ksh.

# cat .profile
.......
........
.......
....
ENV=${HOME}/.kshrc
.........
......

It's that simple

geez ... that was it! ... the shell in /etc/passwd was /bin/sh

Thanks Moshe! ... I knew it was something that simple!!

geez ... that was it! I knew it was something really simple.

Thanks Moshe!!

By setting the first line in the .profile to #!/bin/ksh you undermine the whole concept.

The .profile is not supposed to contain anything which is specific for the ksh.