http://bugs.winehq.org/show_bug.cgi?id=33253
Bug #: 33253 Summary: Command line: Incorrect behavior of "for" command Product: Wine Version: 1.5.26 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: guy.roussin@teledetection.fr Classification: Unclassified
Hi,
with wine 1.5.26 :
C:\OSGeo4W>for %f in (etc/ini/*.bat) do echo %f gdal.bat
C:\OSGeo4W>for %f in (etc/ini/gdal.bat) do echo %f etc/ini/gdal.bat
with windows XP :
C:\OSGeo4W>for %f in (etc\ini*.bat) do echo %f
C:\OSGeo4W>echo etc\ini\gdal.bat etc\ini\gdal.bat
C:\OSGeo4W>for %f in (etc\ini\gdal.bat) do echo %f
C:\OSGeo4W>echo etc\ini\gdal.bat etc\ini\gdal.bat
Thank you,
Guy
http://bugs.winehq.org/show_bug.cgi?id=33253
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #1 from Jason Edmeades us@edmeades.me.uk 2013-06-03 17:04:57 CDT --- Ah... Just looking into the difference noted below. Be aware you have not compared like with like and using the unix slashes even changes the behaviour (although there is a bug/difference here):
(Windows 7) E:\VMShared\bugs\33253>for %f in (etc/ini/*.bat) do echo %f E:\VMShared\bugs\33253>echo gdal.bat gdal.bat E:\VMShared\bugs\33253>for %f in (etc\ini*.bat) do echo %f E:\VMShared\bugs\33253>echo etc\ini\gdal.bat etc\ini\gdal.bat
I will use this bug to concentrate on the reason the below command is missing the path when run in wine compared to windows for %f in (etc\ini*.bat) do echo %f
http://bugs.winehq.org/show_bug.cgi?id=33253
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW AssignedTo|wine-bugs@winehq.org |us@edmeades.me.uk Ever Confirmed|0 |1
--- Comment #2 from Jason Edmeades us@edmeades.me.uk 2013-06-03 18:32:38 CDT --- Attaching patch which solves this + tests (and keeps the unix behaviour as-is too)
http://bugs.winehq.org/show_bug.cgi?id=33253
--- Comment #3 from Jason Edmeades us@edmeades.me.uk 2013-06-03 18:33:32 CDT --- Created attachment 44651 --> http://bugs.winehq.org/attachment.cgi?id=44651 Patch for reported problem
http://bugs.winehq.org/show_bug.cgi?id=33253
--- Comment #4 from Jason Edmeades us@edmeades.me.uk 2013-06-04 16:11:51 CDT --- Submitted http://www.winehq.org/pipermail/wine-patches/2013-June/124604.html
http://bugs.winehq.org/show_bug.cgi?id=33253
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a5b1172e90de94234b2799d26cc | |c36a752bdd7eb Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Jason Edmeades us@edmeades.me.uk 2013-06-05 15:13:33 CDT --- Committed
http://bugs.winehq.org/show_bug.cgi?id=33253
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2013-06-07 15:02:08 CDT --- Closing bugs fixed in 1.6-rc1.