Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.lang.c Subject: Re: Iconitis Message-ID: <29192@apple.Apple.COM> Date: 18 Apr 89 18:13:35 GMT References: <1930@dataio.Data-IO.COM> <11555@lanl.gov> <17376@cisunx.UUCP> <28558@apple.Apple.COM> <7898@pyr.gatech.EDU> <28679@apple.Apple.COM> <7910@pyr.gatech.EDU> <2132@pur-phy> <1752@skinner.nprdc.arpa> <28836@apple.Apple.COM> <10040@smoke.BRL.MIL> <29126@apple. Organization: Apple Computer Inc, Cupertino, CA Lines: 23 In article <29141@apple.Apple.COM> desnoyer@Apple.COM (Peter Desnoyers) writes: >In article <29126@apple.Apple.COM> austing@Apple.COM (Glenn L. Austin) writes: >> >>How about environment variables? I have seen *MANY* cases where the >>environment variables get changed, and never restored. > >That's rather odd, as you can't change environment variables from a >unix command or shell script. The spawned process only sees a copy of >the environment. Are you sure it wasn't MSDOS? You can do the same thing in MSDOS as you can in UNIX -- find the original copy of the environment table and modify it. It isn't too hard to do for UNIX programs, especially shell scripts. ----------------------------------------------------------------------------- | Glenn L. Austin | The nice thing about standards is that | | Apple Computer, Inc. | there are so many of them to choose from. | | Internet: austing@apple.com | -Andrew S. Tanenbaum | ----------------------------------------------------------------------------- | All opinions stated above are mine -- who else would want them? | -----------------------------------------------------------------------------