http://bugs.winehq.org/show_bug.cgi?id=22431
Summary: if exist "%VAR%"\file does not work Product: Wine Version: 1.1.42 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: gabspeck@gmail.com
The following logic fails on Wine's cmd, but works successfully on Windows', i.e. if you set the DLC variable pointing to a directory with a "version" file inside, it will still print "DLC variable not set" on Wine, but will print "OK" on Windows:
set DLC=C:\dlc91e IF EXIST "%DLC%"\version GOTO :BIN echo "DLC Variable not set"
:BIN echo "OK"
The following works, though:
IF EXIST "%DLC%\version" ...
I found that on some administration scripts of a commercial application.
http://bugs.winehq.org/show_bug.cgi?id=22431
Gabriel Speckhahn gabspeck@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gabspeck@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=22431
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=22431
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |us@edmeades.me.uk
--- Comment #1 from Jason Edmeades us@edmeades.me.uk 2010-09-06 14:28:11 CDT --- Patch submitted for this bug in tghe patchset starting http://www.winehq.org/pipermail/wine-patches/2010-September/092915.html
Patch set failed on WinNT4 so reworking slightly, but fixes for this defect are included in it.
http://bugs.winehq.org/show_bug.cgi?id=22431
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |frederic.delanoy@gmail.com Ever Confirmed|0 |1
--- Comment #2 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-05-30 07:04:51 CDT --- Confirmed in 1.3.21
http://bugs.winehq.org/show_bug.cgi?id=22431
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|us@edmeades.me.uk |wine-bugs@winehq.org
http://bugs.winehq.org/show_bug.cgi?id=22431
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #3 from Jason Edmeades us@edmeades.me.uk 2012-09-25 05:09:26 CDT --- http://www.winehq.org/pipermail/wine-patches/2012-September/118173.html
http://bugs.winehq.org/show_bug.cgi?id=22431
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |us@edmeades.me.uk
http://bugs.winehq.org/show_bug.cgi?id=22431
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com 2012-09-26 14:48:33 CDT --- Patch commited: http://source.winehq.org/git/wine.git/commitdiff/e35b239b41317e62659ab94534e...
http://bugs.winehq.org/show_bug.cgi?id=22431
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Jason Edmeades us@edmeades.me.uk 2012-09-26 15:12:54 CDT --- Please retest now the fix is in, and raise any other cmd.exe bugs you find whilst at it, while I'm spending the time looking into outstanding cmd.exe issues :-)
http://bugs.winehq.org/show_bug.cgi?id=22431
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e35b239b41317e62659ab94534e | |34f029d26df3f
http://bugs.winehq.org/show_bug.cgi?id=22431
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2012-09-28 13:43:48 CDT --- Closing bugs fixed in 1.5.14.