fixed problems with strange user .bashrc etc. (stty, ...);
authorwenzelm
Tue, 28 Jan 1997 16:21:15 +0100
changeset 2561 8ef656dbf4fa
parent 2560 c57b585eecd9
child 2562 d571d6660240
fixed problems with strange user .bashrc etc. (stty, ...);
lib/scripts/getplatform
--- a/lib/scripts/getplatform	Mon Jan 27 15:29:39 1997 +0100
+++ b/lib/scripts/getplatform	Tue Jan 28 16:21:15 1997 +0100
@@ -4,7 +4,7 @@
 # getplatform - bash source script to augment current env.
 #
 
-#get bash-style platform info
+#get bash-style platform info -- has to work around some tricky features
 unset HOSTTYPE
 unset OSTYPE
-PLATFORM=$(bash -norc -c 'echo $HOSTTYPE-$OSTYPE')
+PLATFORM=$(unset ENV; unset BASH_ENV; bash -norc -c 'echo $HOSTTYPE-$OSTYPE')