aboutsummaryrefslogtreecommitdiffstats
path: root/msec.csh
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-12-05 11:06:39 +0000
committerFlorin Grad <florin@mandriva.com>2001-12-05 11:06:39 +0000
commit955d06cd57cd4f35ac48012cc32af02a26eb4dc2 (patch)
tree5fcf85988402ae578ae63491c3d4f30b8ef438a7 /msec.csh
parentc6a55d26901c7ab1a3d12040e3fbfd43739a6f45 (diff)
downloadmsec-955d06cd57cd4f35ac48012cc32af02a26eb4dc2.tar
msec-955d06cd57cd4f35ac48012cc32af02a26eb4dc2.tar.gz
msec-955d06cd57cd4f35ac48012cc32af02a26eb4dc2.tar.bz2
msec-955d06cd57cd4f35ac48012cc32af02a26eb4dc2.tar.xz
msec-955d06cd57cd4f35ac48012cc32af02a26eb4dc2.zip
fix the tests, thx to Konrad Bernlohr
Diffstat (limited to 'msec.csh')
-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}