globally unset ENV, BASH_ENV;
authorwenzelm
Fri, 14 Feb 1997 15:13:32 +0100
changeset 2621 e9e491033b54
parent 2620 54f21bf9522a
child 2622 80a81a36dd81
globally unset ENV, BASH_ENV;
lib/scripts/getsettings
--- a/lib/scripts/getsettings	Fri Feb 14 12:19:42 1997 +0100
+++ b/lib/scripts/getsettings	Fri Feb 14 15:13:32 1997 +0100
@@ -9,10 +9,14 @@
 
 set -o allexport
 
+#users tend to put strange things in here
+unset ENV
+unset BASH_ENV
+
 #get bash-style platform info -- has to work around some tricky features
 unset HOSTTYPE
 unset OSTYPE
-PLATFORM=$(unset ENV; unset BASH_ENV; bash -norc -c 'echo $HOSTTYPE-$OSTYPE')
+PLATFORM=$(bash -norc -c 'echo $HOSTTYPE-$OSTYPE')
 
 . $ISABELLE_HOME/etc/settings || exit 2
 [ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings