:
#
# .profile	-- Commands executed by a login Korn shell
#
#	@(#) profile 4.3 90/10/23 
#
# Copyright (c) 1990, The Santa Cruz Operation, Inc.
# All rights reserved.
#
# This Module contains Proprietary Information of the Santa Cruz
# Operation, Inc., and should be treated as Confidential. 
#

PATH=/bin:/usr/bin:			# set command search path
export PATH

if [ -z "$LOGNAME" ]; then
	LOGNAME=`logname`		# name of user who logged in
	export LOGNAME
fi

MAIL=/usr/spool/mail/$LOGNAME		# mailbox location
export MAIL

if [ -z "$PWD" ]; then
	PWD=$HOME			# assumes initial cwd is HOME
	export PWD
fi

#Assumes that PS1 will be set in .kshrc if it exists.
#This is necessary if subshells are to have 'magic' cd function.

if [ -f $HOME/.kshrc -a -r $HOME/.kshrc ]; then
	ENV=$HOME/.kshrc		# set ENV if there is an rc file
	export ENV
else
	case $LOGNAME in			# include command number in prompt
	root)	PS1="!# " ;;
	*)	PS1="!$ " ;;
	esac
	export PS1
fi

# use default system file creation mask (umask)


set -o ignoreeof			# don't let control-d logout
eval `tset -m ansi:ansi -m :?wy60 -r -s -Q`
