www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/10/17:50:23

Date: Sun, 8 Dec 1996 19:38:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Eric Rudd <rudd AT cyberoptics DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: INFO.EXE problem
In-Reply-To: <586ued$62h@hagar.cyberoptics.com>
Message-ID: <Pine.SUN.3.91.961208193135.3884A-100000@is>
MIME-Version: 1.0

On 5 Dec 1996, Eric Rudd wrote:

> I went back to the normal installation directory, and finally discovered
> the problem was that I had set the INFOPATH variable as follows:
> 
>    INFOPATH=c:\dj201/info
> 
> instead of
> 
>    INFOPATH=c:/dj201/info

This conclusion is incorrect.  Info happily handles both genders of
slashes.  I tried both varieties and mixed cases on my system and 
couldn't make Info crash at all.  So it must be some other reason.

>    if "%1" == "112" set DJDIR=c:\dj112
>    if "%1" == "200" set DJDIR=c:\dj200
>    if "%1" == "201" set DJDIR=c:\dj201

I submit that this fiddling with %DJDIR% is the culprit.  DJGPP computes 
the value of %DJDIR% based on the value of %DJGPP%.  However, you set 
%DJDIR% yourself, which might as well leave DJGPP startup code extremely 
confused.  Please try to undefine %DJDIR% and see if Info now works with 
both forward- and backslashes alike.  If so, use some other name for the 
variable you now call %DJDIR% (still approximately 20 batch files to 
change, sorry).

> I don't know if there is a lesson to be learned here or not, but I see now
> that I have approximately 20 batch files to change.  Argh.

If I'm right, the lesson is: don't mess with variables used by DJGPP.

- Raw text -


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