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 # "