www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/06/12:55:31

From: Eric Rudd <rudd AT cyberoptics DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: INFO.EXE problem
Date: 5 Dec 1996 16:49:17 GMT
Organization: CyberOptics Corp
Lines: 63
Message-ID: <586ued$62h@hagar.cyberoptics.com>
References: <584i21$qfi AT hagar DOT cyberoptics DOT com>
NNTP-Posting-Host: rudd.cyberoptics.com
Mime-Version: 1.0
To: rudd AT cyberoptics DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>Get the latest txi390b.zip (dated October 29 1996 or later).

I was using it.

>The initial release of Texinfo binarties had a bug which would sometimes
>exhibit the behavior you describe.

>If the above won't help, please describe in more detail exactly which 
>keys do you press when you get this problem.

Thank you for your prompt reply to my inquiry.  In the process of
documenting the steps I go through, I discovered the cause of the problem.

I started from scratch, unzipping TXI390B.ZIP and GCC2721B.ZIP into a
temporary directory, and manually setting the INFOPATH variable, so that I
could document exactly what I had done, and, lo and behold, it worked!

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

Somewhere in the changes between TXI360B.ZIP and TXI390B.ZIP, the INFO.EXE
program became sensitive to backslashes vs. forward slashes.  The reason I
had this mixture of forward and backslashes was that I was using a big
batch file to set which version of DJGPP to use (I can switch between
1.12, 2.00, and 2.01 from the command line).  The batch file had lines in
it such as this:

   if "%1" == "112" set DJDIR=c:\dj112
   if "%1" == "200" set DJDIR=c:\dj200
   if "%1" == "201" set DJDIR=c:\dj201
   if "%DJDIR%" == "c:\dj112" SET INFOPATH=%DJDIR%/docs;%DJDIR%/docs/djgpp
   if "%DJDIR%" == "c:\dj200" SET INFOPATH=%DJDIR%/info
   if "%DJDIR%" == "c:\dj201" SET INFOPATH=%DJDIR%/info
   PATH=C:\DOS;C:\BAT;%DJDIR%\BIN

I wanted to use the DJDIR variable to invoke executables from other batch
files, like this:

   %DJDIR%\bin\INFO %1 %2 %3 %4 %5 %6 %7 %8 %9

which of course doesn't work with forward slashes; but I can get around
this problem with a little extra work:

   if "%1" == "112" set DJDIR=dj112
   if "%1" == "200" set DJDIR=dj200
   if "%1" == "201" set DJDIR=dj201

   ...

   c:\%DJDIR%\bin\INFO %1 %2 %3 %4 %5 %6 %7 %8 %9

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.

-Eric Rudd
rudd AT cyberoptics DOT com

- Raw text -


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