[comp.sys.atari.st] MW_C Micro-shell

FORTINP%BNR.CA@FORSYTHE.STANFORD.EDU (Pierre Fortin, P.) (08/09/88)

Tip:

 When I'm coding/compiling/debugging/correcting/etc., I hate typing
 more than I have to, just to edit my file, or remember to include
 the same options each time I compile.  So... I thought some of
 you might like the following code which I added to my PROFILE
 file for MSH.PRG (it allows me to type just "e" to edit the last
 edited file, or "c" to re-compile the last compiled file (incl.
 all the options)).  If someone has one which can survive a reset, or
 re-invocation of MSH, I'm interested.

  set in .cmd lastedit='echo "Editor not previously invoked..."'
  set in .cmd e=(
       if (is_set in argv 1) (
            set in .cmd lastedit="me $1"
            me $1
       ) (
            lastedit
       )
  )

  set in .cmd lastcomp='echo "Compiler not previously invoked..."'
  set in .cmd c=(
       if (is_set in argv 1) (
            set in .cmd lastcomp="cc $*"
            cc $*
       ) (
            lastcomp
       )
  )

Question:

 Why is it that I can set multiple directories to search for in the
 environment variables PATH and LIBPATH, but INCLUDE does not allow
 this "feature"? ;-(

 Pierre Fortin
 FORTINP@BNR.BITNET  (I think.  I don't usually mail myself...)