[Bug 26749] in cmd, PATH=FOO should set PATH to FOO

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jul 20 14:10:07 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26749

Frédéric Delanoy <frederic.delanoy at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |frederic.delanoy at gmail.com

--- Comment #3 from Frédéric Delanoy <frederic.delanoy at gmail.com> 2011-07-20 14:10:06 CDT ---
(In reply to comment #0)
> This affects the
>    "C:\\Program Files\\Mono-2.10.1\\bin\\setmonopath.bat"
> batch file bundled with Mono.
> 
> To repeat, do
>   echo path=foo > foo.bat
>   echo path >> foo.bat
> then run 
>   wine cmd /c foo.bat
> 
> expected output:
> PATH=foo
> 
> Observed output:
> PATH=C:\PROG~FBU\MONO~KUH.1\bin;C:\windows\system32;C:\windows;C:\windows\system32\wbem

Tried (with @echo off added as first line of foo.bat)
Oddly enough typing "path" after cmd /c foo.bat prints the original path
(c:\winnt...)

It's as if there's an implicit setlocal done. Or, more likely, the original
path is restored for security reasons.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the wine-bugs mailing list