[17161] in Athena Bugs

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

bash dotfiles: loses on netbsd more horribly than it should

daemon@ATHENA.MIT.EDU (Camilla R Fox)
Thu Sep 9 01:47:04 1999

Message-Id: <199909090546.BAA24424@x15-cruise-basselope.mit.edu>
To: bugs@MIT.EDU
Date: Thu, 09 Sep 1999 01:46:53 -0400
From: Camilla R Fox <cfox@MIT.EDU>


If $athena_path isn't set, the version of add that's used for sourcing
user dotfiles loses horribly, and the path becomes empty.  Since
$athena_path depends on the platform, there's a case statement, that
sets it.  The following patch to /usr/athena/lib/init/bashrc sets it
for netbsd, also, which keeps me for losing there.  A better solution
might be to provide some generic athena path for when $HOSTTYPE isn't
one of the options (as well as the warning that it prints), because
it's a little tricky to debug the add problem back to the lack of
$athena_path.  Note that with my patch, you no longer get to warning
that netbsd isn't a supported platform, which may or may not be
desirable.  If there are any netbsd-athena specific binary directories,
I've probably missed them.


*** bashrc	Sat Aug 21 11:23:51 1999
--- /afs/athena.mit.edu/user/c/f/cfox/init_dir/bashrc	Thu Sep  9 01:18:20 1999
***************
*** 53,58 ****
--- 53,64 ----
  		athena_path=$athena_path:/usr/athena/etc:/usr/sbin:/sbin
  		MANPATH=/usr/athena/man:/usr/man
  		;;
+         inbsd)
+                 athena_path=/srvd/patch:/usr/athena/bin:/bin/athena:/usr/bin
+                 athena_path=$athena_path:/bin:/usr/X11R6/bin
+                 athena_path=$athena_path:/usr/athena/etc:/usr/sbin:/sbin
+                 MANPATH=/usr/athena/man:/usr/man
+ 		;;
  	*)
  		echo "Standard dotfiles do not support system type $HOSTTYPE."
  	esac

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