# default settings for all users

# "$Header: cshrc,v 1.7.2.2 92/10/14 11:22:27 marker Exp $"


umask 022
set path = (~/bin /usr/net /bin /usr/bin /usr/ucb /opt/bin .)

# set TZ if in single user mode
set ___fubar___=(`who -r`)
if ( " $___fubar___" != " " ) then
    if ( $___fubar___[3] == "S" ) then
	source /etc/TIMEZONE.csh
    endif
else
    logger -p user.crit "WARNING: possibly trashed utmp/utmpx file."
endif
unset ___fubar___

if ( -e ~/.hushlogin ) then
	:
else
	cat -s /etc/motd
	if ($?LOGNAME == 0) then
		echo "/etc/cshrc: LOGNAME: parameter not set"
		exit 1
	else
		set mail=/usr/mail/$LOGNAME
	endif

	if ( -e /bin/mail ) then
		if ( { /bin/mail -e } ) then
			echo 'You have mail.'
		endif
	endif
	if ( $LOGNAME != root ) then
		news -n
	else
		# close security hole: remove "."
		set path = (/usr/net /usr/ucb /sbin /usr/sbin /usr/bin /etc /usr/etc)
	endif
endif
