🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ibm.pc.programmer
3 messages
3 total messages Started by Lee Rothstein, 603-884-0039 Mon, 19 Mar 1990 23:52
Re: How do I make my path bigger?
#82
Author: Lee Rothstein, 603-884-0039
Date: Mon, 19 Mar 1990 23:52
47 lines
2176 bytes
In article <100010002@hpcupt1.HP.COM>, bmp@hpcupt1.HP.COM
(Brian M. Perkin) writes...

>I earlier wrote:
> 
># / hpcupt1:comp.sys.ibm.pc.programmer / bmp@hpcupt1.HP.COM (Brian M. Perkin) /  7:12 pm  Mar  9, 1990 /
># Have more than one path statement, where
># the second statement references the first as %%PATH%%%PATH% .
> 
>It appears ( from the polite and other messages I received)
>that I was STTY'ed wrong when I typed this.
> 
>The variable used to expand the previous definition of the
>path string should be %PATH%.
> 
>For example
> 
>Set path=c:\;c:\bin
>and
>Set path=%path%;c:\etc
> 
>will expand as you would expect.
>(Dos documentation treats the Path command and set path= as synonomous.)

This has been proposed many times.  It does not work on any
version of DOS, on any 80x86 hardware I have ever seen!!

Why?

Because the expansion of the environment variable on the right side
of the assign is done before it is submitted to command.com and
therfore the 128 character truncation of the command line still
occurs.

For versions of DOS before 3.3, enved by Scott Robert Ladd can be
used from a batch file to set a path <= 256 characters.  Enved does
not work with DOS 3.3, at least for the versions with which I'm
familiar.

Can we please not propigate the same wrong answers ad nauseum?

Thanks!
+---------------------------------------------------------+
| Lee Rothstein * UUCP: {purdue,ucbvax,hplabs,labrea,sun, |
|  pyramid,gryphon,angelo}!decwrl!nutmeg.dec.com!rothstein|
|   * Arpa/Domain Address: rothstein@nutmeg.enet.dec.com  |
+---------------------------------------------------------+
Re: How do I make my path bigger?
#86
Author: Jim Giles
Date: Tue, 20 Mar 1990 01:48
7 lines
628 bytes
From article <9393@shlump.nac.dec.com>, by rothstein@nutmeg.Enet.DEC.com (Lee Rothstein, 603-884-0039):
> [...]
> Can we please not propigate the same wrong answers ad nauseum?

Why should this newsgroup be any different from all the others?

J. Giles
Re: How do I make my path bigger?
#100
Author: Stephen M. Dunn
Date: Wed, 21 Mar 1990 00:02
33 lines
2022 bytes
In article <9393@shlump.nac.dec.com> rothstein@nutmeg.Enet.DEC.com (Lee Rothstein, 603-884-0039) writes:
$>For example
$>Set path=c:\;c:\bin
$>and
$>Set path=%path%;c:\etc
$>will expand as you would expect.
$>(Dos documentation treats the Path command and set path= as synonomous.)
$This has been proposed many times.  It does not work on any
$version of DOS, on any 80x86 hardware I have ever seen!!

   It won't expand beyond 128 characters; however, for shorter strings, it
does work.

$Because the expansion of the environment variable on the right side
$of the assign is done before it is submitted to command.com and
$therfore the 128 character truncation of the command line still
$occurs.

   Wrong.  The expansion of environment variables (which, BTW, only works
in batch files) _is_ done by COMMAND.COM.  The only part of command input
and processing which is not done by COMMAND.COM is the actual input and
editing of the line (this is done with a DOS call).

   I would imagine that since the input is limited in length to 128
(or maybe 127 ... I'm not sure) bytes, COMMAND.COM assumes that it will
never have to face a command line longer than that, even though using
environment variable expansion can easily generate one several times
that length.
-- 
Stephen M. Dunn                               cs4g6ag@maccs.dcss.mcmaster.ca
          <std_disclaimer.h> = "\nI'm only an undergraduate!!!\n";
****************************************************************************
    "So sorry, I never meant to break your heart ... but you broke mine."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads