🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #322

Re: How do you put a '=' in your SET ...=... ?

#322
From: Larry A. Shurr
Date: Thu, 12 Apr 1990 14:50
36 lines
2265 bytes
In article <1630@krafla.rhi.hi.is> einari@rhi.hi.is (Einar Indridason) writes:

}In my autoexec.bat I have 'SET EXINIT=set mo sm wl=5'
}                                                  ^ Note this '=' sign.

}However when I run my autoexec.bat I get SYNTAX ERROR and the EXINIT
}variable is not set.

I have written a program called SETENV which can do this as well as
other things such as interpreting octal & hex constants.  I originally
wrote it because some versions of COMMAND.COM do not permit imbedded
space characters in the symbol value.  (SETENV is based upon a program
of the same name written by Alan J. Myrvold which demonstrated a way
to locate and modify the environment of an MSDOS process' parent).

SETENV has been tested and found to work under MSDOS versions 2.11,
3.2, 3.3 and 4.01; however, I certainly do not warrant it in any way
since it does employ a kludge to locate the parent process' environment:
it searches backward through memory for a copy of the current process'
environment.  I believe it to be reasonably safe, though, as I include
checks to prevent it from overrunning the block allocated for the 
environment so that you will not accidently clobber memory.

SETENV was included in the recent posting of STEVIE V3.69a in
comp.sources.misc from David Tutelman.

}I just learned a new curse: "You #$@! son of SCROLLBAR!"

Well, MSDOS you!  :-)

regards, Larry
-- 
Signed: Larry A. Shurr (cbnmva!las@att.ATT.COM or att!cbnmva!las)
My psuedo-Burma Shave .signature has served me long and well and has been
retired.  A new .signature is now under consideration.
This posting reflects my opinions, not those of AGS or AT&T, but you knew that)
Technical Details
Message-ID: <15529@cbnews.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!mephisto!psuvax1!rutgers!att!cbnews!shurr
References: <1630@krafla.rhi.hi.is>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!mephisto!psuvax1!rutgers!att!cbnews!shurr
From: shurr@cbnews.ATT.COM (Larry A. Shurr)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: How do you put a '=' in your SET ...=... ?
Message-ID: <15529@cbnews.ATT.COM>
Date: 12 Apr 90 14:50:33 GMT
References: <1630@krafla.rhi.hi.is>
Reply-To: shurr@cbnews.ATT.COM (Larry A. Shurr,20650,cb,9a110,6148605851)
Organization: AT&T Bell Laboratories, Columbus, OH (actually an AGS consultant)
Lines: 36