210401

sam_root and and sam_distro are normally defined in sam_env.  Perhaps
I'll do the same for sam_lite.


210405

I'm off to a good start.  bound is a function defined in begin.  It
seems I don't need "/bin/bash -rcfile", as bound has another parameter.  When it is
"batch", then sh is not used to keep the shell open.  Otherwise it is
used.

I need to change bound so that it works with two args like my real SAM,
but keep the paramter for "batch" as the last one.  Fix the code for
bound in SAM Lite to work with these changes.

Implement Lite versions of upfun and dofun such that they add the
functions of level and sam_add.  Keep the use of "#OK SAM".

Fix the code (bound I think), so that it defines PATH correctly. 
Currently it puts the path that contains begin into PATH, which isn't
right (anymore).

With these changes I should be able to run these tests:

   This test will run "author", then exit.  That is what it should do. 
   Just running begin will run upfun which will put the commands and
   functions of sam_root in scope.  Hey, I thould move bound out of
   begin and put let it be bound.sam in sam_root:

      /mnt/200810aa2/lite/begin author

   Or not.  Instead I could change it so that the above will fail
   saying that the command is not found.  Other commands, not part of
   SAM would work though.  These command (SAM commands or otherwise)
   are quoted strings separated by spaces.

   To use commands of SAM they need to be added like this:

      /mnt/200810aa2/lite/begin "bound <initial menu> <path to sam
      kernel>:<other paths if desired separated by colons>".

   So it seems, if I do the above that I should rename my current begin
   to bsam_start (or whatever the analogous real SAM file is) and make
   a begin which does the above.

   /mnt/200810aa2/lite/begin "bound /tmp"
   author
   exit

   This test will just exit.  That is what it should do:

      /mnt/20010aa2/lite/begin

   Hmmm.  Will this new bsam_start...  Hmmm.  I think I have it tangled
   up, even yet.
