slightly more robust re-initialization;
authorwenzelm
Thu, 25 Feb 2016 19:22:13 +0100
changeset 62416 cb6c4e307b1c
parent 62415 62c03eb38e49
child 62417 d515293f5970
slightly more robust re-initialization;
lib/scripts/getfunctions
lib/scripts/getsettings
--- a/lib/scripts/getfunctions	Thu Feb 25 19:08:48 2016 +0100
+++ b/lib/scripts/getfunctions	Thu Feb 25 19:22:13 2016 +0100
@@ -6,11 +6,7 @@
 # non-interactive bash processess. NB: bash shell functions are not portable
 # and may be dropped by aggressively POSIX-conformant versions of /bin/sh.
 
-if [ -z "$ISABELLE_SETTINGS_PRESENT" ]
-then
-  echo 1>&2 "Missing Isabelle settings environment"
-  exit 2
-elif type splitarray >/dev/null 2>/dev/null
+if type splitarray >/dev/null 2>/dev/null
 then
   :
 else
--- a/lib/scripts/getsettings	Thu Feb 25 19:08:48 2016 +0100
+++ b/lib/scripts/getsettings	Thu Feb 25 19:22:13 2016 +0100
@@ -4,14 +4,17 @@
 #
 # Static Isabelle environment for root of process tree.
 
+export ISABELLE_HOME
+
+export BASH_ENV="$ISABELLE_HOME/lib/scripts/getfunctions"
+source "$BASH_ENV"
+
+
 if [ -z "$ISABELLE_SETTINGS_PRESENT" ]
 then
 
 export ISABELLE_SETTINGS_PRESENT=true
 
-export BASH_ENV="$ISABELLE_HOME/lib/scripts/getfunctions"
-source "$BASH_ENV"
-
 set -o allexport
 
 #sane environment defaults (notably on Mac OS X)
@@ -50,8 +53,6 @@
   unset CLASSPATH
 fi
 
-export ISABELLE_HOME
-
 #main executables
 ISABELLE_TOOL="$ISABELLE_HOME/bin/isabelle"
 ISABELLE_PROCESS="$ISABELLE_HOME/bin/isabelle_process"