aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmsec.csh9
1 files changed, 7 insertions, 2 deletions
diff --git a/msec.csh b/msec.csh
index e88eda7..0792667 100755
--- a/msec.csh
+++ b/msec.csh
@@ -11,12 +11,17 @@ if ! { (echo "${PATH}" | grep -q /usr/games) } then
endif
# translate sh variables from /etc/sysconfig/msec to their equivalent in csh
-if ( -n "$TMOUT" ) then
+if ( ${?TMOUT} ) then
+ if ( "$TMOUT" != "" ) then
set autologout=`expr $TMOUT / 60`
+ endif
+
endif
-if ( -n "$HISTFILESIZE" ) then
+if ( ${?HISTFILESIZE} ) then
+ if ( "$HISTFILESIZE" != "" ) then
set history=$HISTFILESIZE
+ endif
endif
setenv SECURE_LEVEL ${SECURE_LEVEL}