delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/13/05:47:32

X-Authentication-Warning: acp3bf.physik.rwth-aachen.de: broeker owned process doing -bs
Date: Tue, 13 Apr 1999 11:47:15 +0200 (MET DST)
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
X-Sender: broeker AT acp3bf
To: djgpp-workers AT delorie DOT com
Subject: Re: LBInstDJ
In-Reply-To: <Pine.SUN.3.91.990413095929.29746G-100000@is>
Message-ID: <Pine.LNX.3.93.990413114359.3378A-100000@acp3bf>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 13 Apr 1999, Eli Zaretskii wrote:

> On Mon, 12 Apr 1999, Salvador Eduardo Tropea (SET) wrote:

> > > What do you recommend for those poor souls whose path variable is already
> > > filled to overflowing?

> It needs at least to be detected.  Here's one way:
> 
>    set OLDPATH=%PATH%
>    set PATH=C:\DJGPP\BIN;%PATH%
>    if not "%PATH%"=="C:\DJGPP\BIN;%OLDPATH%" echo ERROR

Unless my knowledge on command.com is completely failing me, here, this
will not work at all. A 'filled close to overflowing' PATH variable is one
that is almost as long as the DOS command line lenght limit (around 127
chars). This would make the 'if' command above be about 240 or more chars
long (two copies of those 120+ chars of %PATH% in it), clearly too long to
even parse correctly, let alone produce a working check.

Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019