Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!FORSYTHE.STANFORD.EDU!FORTINP%BNR.CA From: FORTINP%BNR.CA@FORSYTHE.STANFORD.EDU (Pierre Fortin, P.) Newsgroups: comp.sys.atari.st Subject: MW_C Micro-shell (MSH) Message-ID: <8808090215.AA22209@ucbvax.berkeley.edu> Date: 9 Aug 88 02:15:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 38 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...)