[Wine] wcmd - CALL doesn't honor PATH

Jesse Guardiani jesse at wingnet.net
Sat Jan 28 22:26:23 CST 2006


Hello,

I noticed this while attempting to run a DOS software suite. The CALL command in
wcmd doesn't seem to honor the set PATH.

If I put this in my environment (via regedit):
    c:\windows;c:\windows\system;e:\;e:\test;f:\;f:\downloads\daphne\tools

Then I put the following in f:\downloads\daphne\tools\bob.bat:

path c:\windows;c:\windows\system;e:\;e:\test;f:\;f:\downloads\daphne\tools
path
CALL bob

Then run bob.bat from the shell, from the f:\downloads\daphne working directory:

F:\downloads\daphne>bob
F:\downloads\daphne>path
c:\windows;c:\windows\system;e:\;e:\test;f:\;f:\downloads\daphne\tools
F:\downloads\daphne>path
PATH=c:\windows;c:\windows\system;e:\;e:\test;f:\;f:\downloads\daphne\tools
F:\downloads\daphne>CALL bob
File not found

F:\downloads\daphne>
F:\downloads\daphne>

You can see that CALL doesn't honor PATH. It should loop until interrupted.
Is this a bug? Any way around it?




More information about the wine-users mailing list