gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] gclm.bat


From: Vadim V. Zhytnikov
Subject: Re: [Gcl-devel] gclm.bat
Date: Tue, 30 Dec 2003 21:44:03 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.5) Gecko/20031006

Mike Thomas ?????:
Hi Vadim.

| One suggestion about gcl.bat script.
| It is good idea to place "" around %PATH%
| This helps if path has directories with spaces.
| In this case original path command in the
| gcl.bat fails.

I'm don't get that on Win XP eg:

Ah, you are right.  If path contains spaces then

path <foo>;%path%

works fine on Win XP bit fails on Win Me
with the error message "Too many parameters...".
The bad news is that

path <foo>;"%path%"

works on Win Me but don't work on Win XP.
On XP this command scrambles path variable
since "" remains in it unexpanded.  I really
don't know what to do?  Two separate
scripts for Win XP/2K and Win Me/9X?
Can installed handle this?

On the other hand I noticed that under Win Me
all programs tends not to add pieces with
spaces to the patch.  They try to use
short (like PROGRA~1) alternatives.
I noticed problem with

path <foo>;"%path%"

only after installation of MS SQL server
which added directory with spaces to the
path.


C:\Documents and Settings\miketh>path a b;c d;ef
C:\Documents and Settings\miketh>echo %path%
a b;c d;ef
C:\Documents and Settings\miketh>path blah blah;%path%
C:\Documents and Settings\miketh>echo %path%
blah blah;a b;c d;ef

Here is the path which gcl.bat passes in to GCL under Windows XP (and from
past experience, also W2000):


(si::getenv "PATH")


"C:\\Progra~1\\GCL-2.6.1\\mingw\\bin;C:\\lang\\texmf\\miktex\\bin\\;C:\\lang
\\ms
dotnetSDK\\Bin\\;C:\\Program Files\\Microsoft Visual Studio
.NET\\Common7\\IDE\\
;C:\\WINDOWS\\Microsoft.NET\\Framework\\v1.0.3705\\;C:\\Program
Files\\Microsoft
 Visual Studio
.NET\\Vc7\\bin\\;C:\\lang\\Tcl-8.4.1.0\\bin;C:\\WINDOWS\\system32
;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\Common
Files\\Adapte
c
Shared\\System;C:\\lang\\ocaml\\bin;C:\\lang\\texmf\\miktex\\bin\\;C:\\lang\
\M
SDOTN~1\\Bin\\;C:\\PROGRA~1\\MICROS~1.NET\\Common7\\IDE\\;C:\\WINDOWS\\MICRO
S~1.
NET\\FRAMEW~1\\V10~1.370\\;C:\\PROGRA~1\\MICROS~1.NET\\Vc7\\bin\\;C:\\lang\\
TCL-
84~1.0\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:
\\PR
OGRA~1\\COMMON~1\\ADAPTE~1\\System;C:\\lang\\ocaml\\bin;c:\\lang\\sml-nj-110
.9.1
\\bin;c:\\lang\\Palmdev\\apache-ant-1.5.4\\bin"

Are you getting something different on Win 98 or ME?

| Finally I wonder about gclm.bat.  Strange but
| it doesn't work to me on both Win XP and Win Me.
| Maybe we should replace it by a simpler script -
| something like gcl.bat but with GCL installation
| path in some environment variable?

It works for me under NT2000 and XP but I can't test under ME - you're
probably right though - it's something I picked up off the web which does
some tricky stuff I don't really understand to establish the current working
directory.  It isn't meant to be used in a release install of GCL - more of
a convenience for developers.

What goes wrong for you when you use it on XP and ME?

Sorry, I probably did something wrong.  In real life gclm.bat
works to me fine on Win XP.
On Win Me it issues several "Syntactic error".
But even this error I was able to get only after converting
gclm.bat into DOS text file encoding. Without it it just
silently exits. Win Me/9X command interpreter can't handle
files in UNIX encoding (Win XP interpreter can).


Cheers

Mike Thomas.




_______________________________________________
Gcl-devel mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/gcl-devel




--
     Vadim V. Zhytnikov

      <address@hidden>
     <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]