diff rc/tcsh @ 243:3167e31f8f01

[tcsh] Sanity tester.
author Edho Arief <edho@myconan.net>
date Thu, 03 Nov 2011 15:55:44 +0700
parents 443e0004a708
children b6b9a47de016
line wrap: on
line diff
--- a/rc/tcsh	Thu Nov 03 15:43:17 2011 +0700
+++ b/rc/tcsh	Thu Nov 03 15:55:44 2011 +0700
@@ -5,6 +5,13 @@
   exit
 endif
 
+# Ensures we're not loading this script again.
+if ( ! $?ecos_tcsh_loaded ) then
+  set ecos_tcsh_loaded="yes"
+else
+  exit
+endif
+
 [ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before"
 umask 22
 limit coredumpsize 0