[18402] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 8.4.13: bash

daemon@ATHENA.MIT.EDU (Arun A Tharuvai)
Fri Oct 13 12:31:32 2000

Message-Id: <200010131631.MAA26450@meeko.mit.edu>
To: bugs@MIT.EDU
Cc: and@MIT.EDU
Date: Fri, 13 Oct 2000 12:31:28 -0400
From: Arun A Tharuvai <aatharuv@MIT.EDU>

System name:		meeko.mit.edu
Type and version:	Ultra-5_10 8.4.13
Display type:		m

Shell:			/afs/sipb/project/bash/bash
Window manager:		vtwm.gamma

What were you trying to do?
     I was trying to set environment variables, and attach
lockers using the .bash_environment file

What's wrong:
     Environment variables set in .bash_environment are not
propogated to the environment, and lockers are not attached.

Here's a fix, thanks to a suggestion by Antony Donovan (and@mit.edu).

--- /usr/athena/lib/init/bashrc      Fri Oct 13 12:20:27 2000
+++ /usr/athena/lib/init/bashrc.new  Fri Oct 13 11:43:31 2000
@@ -15,7 +15,7 @@
 # Set up standard system/user environment configuration (including setup of
 # environment variables, attachment of lockers, and setting of search path)
 
-if [ "${ENV_SET+set}" != set ]; then
+if [ "${ENV_SET:+set}" != set ]; then
 
        export ENV_SET=t                        # Avoid unnecessary repeat
        export HOSTTYPE="`/bin/athena/machtype`"

home help back first fref pref prev next nref lref last post