1. EUINC not as advertised ?
- Posted by bobelia200 at NETZERO.NET Dec 07, 2001
- 453 views
Rob, Unless I am making a mistake in my testing (or I've misunderstood), the environment variable EUINC is not behaving according to the documentation. Here's the program I am running: (I have removed some blank lines.) g:\eebob3>type g:\xyz.ex include print.e print( 1, command_line() ) puts(1, '\n') include xxx.e g:\eebob3> If I set the variables as follows, g:\eebob3>SET EUDIR=G:\EUPHORIA g:\eebob3>SET EUINC=C:\;J:\ g:\eebob3>dir g:\EUPHORIA\INCLUDE\xxx.e Volume in drive G is unlabeled Serial number is 3BA5:F01D File not found "G:\EUPHORIA\INCLUDE\xxx.e" 0 bytes in 0 files and 0 dirs 3,297,529,856 bytes free g:\eebob3>dir j:\XXX.E Volume in drive J is COMPRESSED2 Serial number is 17E9:1115 Directory of J:\XXX.E 12-07-01 9:29p 42 XXX.E 42 bytes in 1 file and 0 dirs 32,768 bytes allocated 589,824 bytes free g:\eebob3>ex Euphoria Interpreter 2.3 alpha for 32-bit DOS. Copyright (c) Rapid Deployment Software 2001 Permission is freely granted to anyone to copy and redistribute this Public Domain Edition of Euphoria. file name to execute? g:\xyz.ex {"G:\\EUPHORIA\\BIN\\EX.EXE","g:\\xyz.ex"} g:\xyz.ex:5 can't find xxx.e in g: or in C:\;J:\ or in euphoria\include include xxx.e ^ g:\eebob3>type j:\XXX.E sequence x puts(1, "This is XXX.E\n") g:\eebob3> If, however, I g:\eebob3>SET EUINC=C:\;J:\;h:\EUPHORIA\INCLUDE\ --(this is my 2.2 installation.) g:\eebob3>type h:\EUPHORIA\INCLUDE\XXX.E sequence x puts(1, "This is XXX.E\n") g:\eebob3>ex g:\xyz {"G:\\EUPHORIA\\BIN\\EX.EXE","g:\\xyz"} This is XXX.E Warning: local variable x in xxx.e is not used g:\eebob3> It seems that the interpreter is requiring the include path to be in some installation, under \EUPHORIA\INCLUDE\. Is this what you intended? It seems rather restrictive to me. Anyone else notice this? BTW, I've tried this under command.com, 4DOS, WIN98 and DOS 6.20 on a different machine. Sincerely, Bob Elia
2. Re: EUINC not as advertised ?
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 07, 2001
- 407 views
Bob Elia writes: > Unless I am making a mistake in my testing (or I've misunderstood), the > environment variable EUINC is not behaving according to the documentation. > ... > SET EUINC=C:\;J:\ Try it without the trailing backslashes: SET EUINC=C:;J: Euphoria inserts a '\' between your directory name and the include file name before trying to open the file. I think you're creating two backslashes. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
3. Re: EUINC not as advertised ?
- Posted by Igor Kachan <kinz at peterlink.ru> Dec 09, 2001
- 421 views
Hi Bob, Hi Rob The correct syntax for EUINC variable is: rem -- file AUTOEXEC.BAT SET EUINC=D:\EUPHORIA.RDS\INCLUDES;F:\EUAUX\INCL rem -- file AUTOEXEC.BAT So, I have two additional directories for include files. On disk D:, euphoria.rds\includes directory. On disk F:, euaux\incl directory. Both work Ok for me. In refman.doc 2.3, there is misprint. Instead It can be added to your AUTOEXEC.BAT file, e.g. EUINC=C:\EU\MYFILES;C:\EU\WIN32LIB must be It can be added to your AUTOEXEC.BAT file, e.g. SET EUINC=C:\EU\MYFILES;C:\EU\WIN32LIB And SET command doesn't work from the prompt to command line *to write variables* for me, works from autoexec.bat only -- to *write*. But SET works Ok from command line *to read* all set of that sets, which are done by autoexec.bat. Hope this is some help. Regards, Igor Kachan kinz at peterlink.ru
4. Re: EUINC not as advertised ?
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 09, 2001
- 470 views
Igor Kachan writes: <some typos> Thanks. > And SET command doesn't work from the prompt > to command line *to write variables* for me, > works from autoexec.bat only -- to *write*. >From the command prompt, SET works for writing too, but it only has effect in the *current* DOS window. When you kill that window, or move to another DOS window, the variable won't be set. To set a variable in *all* DOS windows, it must be done in AUTOEXEC.BAT. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
5. Re: EUINC not as advertised ?
- Posted by Igor Kachan <kinz at peterlink.ru> Dec 09, 2001
- 438 views
Robert Craig writes: > > And SET command doesn't work from the prompt > > to command line *to write variables* for me, > > works from autoexec.bat only -- to *write*. > > From the command prompt, SET works for writing too, > but it only has effect in the *current* DOS window. > When you kill that window, or move to another DOS window, > the variable won't be set.To set a variable in *all* > DOS windows, it must be done in AUTOEXEC.BAT. Thanks Rob, I had the gap with and about that SET. I never used DOS Window in such the strange mode, but it works exactly as you say, for me too Thanks again. Regards, Igor Kachan kinz at peterlink.ru
6. Re: EUINC not as advertised ?
- Posted by bobelia200 at NETZERO.NET Dec 09, 2001
- 455 views
At 11:52 PM 12/7/01 -0500, you wrote: > >Bob Elia writes: > > Unless I am making a mistake in my testing (or I've misunderstood), the > > environment variable EUINC is not behaving according to the documentation. > > ... > > SET EUINC=C:\;J:\ > >Try it without the trailing backslashes: > SET EUINC=C:;J: > >Euphoria inserts a '\' between your directory name >and the include file name before trying to open the file. >I think you're creating two backslashes. > >Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com Problem solved. Thanks. Bob