delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/10/20:20:44

Date: Sat, 11 Jun 1994 01:24:57 +0200
From: Dag Nummedal <Dag DOT Nummedal AT itk DOT unit DOT no>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: dos env variables set via setdjgpp.bat

DJ Delorie writes:
 > > 
 > > Djgpp seems to be pretty good at accepting either forward or backward slashes
 > > in most places.  I believe it used to be pickier.  For that matter, DOS also
 > > accepts either style slash anywhere except on the command line.  If you do
 > > manage to get the wrong style slashes into one of the programs, it will tell
 > > you this by failing to find a file or something similar.  I see places in the
 > > GO32 source code where \ get translated to /, so I suppose the forward slash
 > > is "correct".
 > 
 > GCC will barf if you give it include paths with backslashes in it,
 > since it thinks they're supposed to be escapes instead of directory
 > separators.  Always use forward slashes [/] for *_INCLUDE_PATH.
 > 

Since there isn't a single use of %1 (i.e. mydir\djgpp) in setdjgpp, the least
confusing option would probably be to change all %2 to %1, and use the command

  call  mydir\djgpp\bin\setdjgpp mydir/djgpp

Nice idea, huh? ;-)

-Dag Nummedal

- Raw text -


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