Path: utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!gatech!hao!ames!amdcad!cae780!tektronix!reed!percival!bucket!leonard From: leonard@bucket.UUCP (Leonard Erickson) Newsgroups: comp.sys.ibm.pc Subject: Re: Environment space size? Keywords: environment variables size Message-ID: <665@bucket.UUCP> Date: 9 Jan 88 06:47:59 GMT References: <1900@ukecc.engr.uky.edu> Reply-To: leonard@bucket.UUCP (Leonard Erickson) Distribution: na Organization: Rick's Home Grown Unix; Portland, OR Lines: 30 While we're "on the subject", can anyone tell me why an EXEC from Turbo Pascal 4.0 or a SHELL from a compiled BASIC program always results in a *smaller* environment? Specifically, when I do either of the following: BASIC: SHELL("LOTUS.BAT") Pascal: exec('command.com','/c lotus.bat'); Where LOTUS.BAT is the following: c: cd\lotus2 prompt Type "EXIT" and press RETURN to return to Lotus 1-2-3$_$p$g lotus prompt $p$g c: cd\ I get an "Out of environment space" msg when the bat file runs. Using the /S option in Lotus (2.01) gets a prompt that ends at the 't' in 'return'. But if I run the same bat file from DOS it works.... And no matter *how* much environment space I setup it still happens if I run it as a child process. I get the impression that DOS only passes along the environment variables and a paragraph or so of 'extra' environment space?! -- Leonard Erickson ...!tektronix!reed!percival!bucket!leonard CIS: [70465,203] "I used to be a hacker. Now I'm a 'microcomputer specialist'. You know... I'd rather be a hacker."