From 955d06cd57cd4f35ac48012cc32af02a26eb4dc2 Mon Sep 17 00:00:00 2001 From: Florin Grad Date: Wed, 5 Dec 2001 11:06:39 +0000 Subject: fix the tests, thx to Konrad Bernlohr --- msec.csh | 9 +++++++-- 1 file 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} -- cgit v1.2.1