Print this page
3395 add /etc/profile.d and /etc/.login.d
*** 19,29 ****
# CDDL HEADER END
#
# Copyright 1998 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! #ident "%Z%%M% %I% %E% SMI"
# The initial machine wide defaults for csh.
if ( $?TERM == 0 ) then
if { /bin/i386 } then
--- 19,30 ----
# CDDL HEADER END
#
# Copyright 1998 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # Copyright 2013 Alexander Pyhalov. All rights reserved.
! #
# The initial machine wide defaults for csh.
if ( $?TERM == 0 ) then
if { /bin/i386 } then
*** 52,56 ****
--- 53,81 ----
case 2:
echo "You have mail."
breaksw;
endsw
endif
+
+ if ( -d /etc/csh/login.d && ! -f "${HOME}/.limited_profile" ) then
+ if ($?nonomatch) then
+ set old=$nonomatch
+ else
+ unset old
+ endif
+ set nonomatch=1
+ foreach file ( /etc/csh/login.d/*.csh )
+ if ( "$file" == "/etc/csh/login.d/*.csh" ) then
+ break
+ endif
+ if ( -f "$file" && -r "$file" ) then
+ source "$file"
+ endif
+ end
+ if ($?old) then
+ set nonomatch="$old"
+ unset old
+ else
+ unset nonomatch
+ endif
+ unset file
+ endif