> Date: Wed, 19 Apr 2000 10:45:26 -0500

  > > (1) Does/can bsh automatically load an initialization file when it
  > > starts up?  (E.g., It would be convenient to include some standard
  > > import statements and "show").
  > 
  > Yes, sorry it's not in the proper docs yet.  If you check out the changes
  > list for the latest version you'll find the description:
  > 
  >   startup file (.rc file) support. Bsh will source the file
  >   "user.home"/.bshrc upon startup. This defaults to C:\Windows under
  >   win98 and $HOME under Unix. (can the home be set with an env var
  >   under Win? "home" doesn't seem to do it).

Here's documentation from info regarding how emacs finds it's
init file.  Bsh should use the same procedure.  The actual
source code is in emacs-20.6/lisp/startup.el, search for "HOME".
I know this works because I reset HOME in my NT environment
to be c:\rich.

File: emacs,  Node: Find Init,  Prev: Terminal Init,  Up: Init File

How Emacs Finds Your Init File
------------------------------

   Normally Emacs uses the environment variable `HOME' to find
`.emacs'; that's what `~' means in a file name.  But if you have done
`su', Emacs tries to find your own `.emacs', not that of the user you
are currently pretending to be.  The idea is that you should get your
own editor customizations even if you are running as the super user.

   More precisely, Emacs first determines which user's init file to use.
It gets the user name from the environment variables `LOGNAME' and
`USER'; if neither of those exists, it uses effective user-ID.  If that
user name matches the real user-ID, then Emacs uses `HOME'; otherwise,
it looks up the home directory corresponding to that user name in the
system's data base of users.

  > > (2) If I redefine (and recompile) a class after it has been loaded
  > > into bsh (e.g., to fix a bug discovered by playing with it in the
  > > shell), does bsh automatically reload the latest version of the class
  > > when I use it again (e.g., by checking creation dates)?  If not, I
  > > suppose I could do this myself using the ClassLoader, but it would be
  > > a long statement. (I noticed the "load" command, but seems to be only
  > > for serialized objects, not class files).
  > 
  > It doesn't currently do this, but I will be adding more sophisticated
  > class loading in the next release... stay tuned 

Thanks.
-- 
    Charles Rich     |    Mitsubishi Electric Research Laboratory (MERL)
 617-621-7507 phone  |                   201 Broadway
 617-621-7550 fax    |                Cambridge, MA 02139
    [EMAIL PROTECTED]    |                http://www.merl.com

Reply via email to