Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!mailrus!husc6!cca!mirror!jvc
From: jvc@mirror.TMC.COM (Jim Champeaux)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Another twist on DOS environment sizes.
Message-ID: <14539@mirror.TMC.COM>
Date: 2 Jun 88 12:32:29 GMT
Article-I.D.: mirror.14539
References: <629@fxgrp.UUCP> <4598@dasys1.UUCP> <835@acornrc.UUCP> <14488@mirror.TMC.COM> <849@acornrc.UUCP>
Reply-To: jvc@prism.TMC.COM (Jim Champeaux)
Organization: Mirror Systems, Cambridge Mass.
Lines: 26

In article <849@acornrc.UUCP> bob@acornrc.UUCP (Bob Weissman) writes:
>In article <14488@mirror.TMC.COM>, jvc@mirror.TMC.COM (Jim Champeaux) writes:
>> I must be missing something.  Why patch command.com when you can use
>> the config.sys file to specify an environment size larger than the 
>> ...
>
>Because, as mentioned in an earlier article today, specifying
>  shell=command.com /e:nnnn
>in config.sys prevents execution of autoexec.bat.  I too tried
>various combinations of /e, /c, and /p but could not get the default
>behavior to occur.

You must use the /p switch.  This tells command.com that it is the
permanent copy (can't exit from it with EXIT) and that it should do
all initial processing like executing autoexec.bat.

I use the following in my config.sys since the default environment is 
much too small: (MS-DOS 3.2 -- in 3.1 the argument for /e: is not number
of bytes but number of pages):
         shell = c:\dos\command.com c:\dos\ /p /e:1024
  ( note the c:\dos\ parameter -- tells it where to find itself if
    transient portion is overwritten )

If you now want to run a secondary command.com with a larger
environment type the following command:
       command /e:2048