https://bugs.winehq.org/show_bug.cgi?id=45722
Bug ID: 45722 Summary: cmd for loop doesn't work with tokens and delims Product: Wine Version: 3.0.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: paleozogt@gmail.com Distribution: ---
Created attachment 62153 --> https://bugs.winehq.org/attachment.cgi?id=62153 example of for loop that doesn't work
Using a "for /F" loop with tokens and delims doesn't work.
Attached is a test.bat that shows the problem. It takes an argument list, splits it up by the loop and echos each arg.
With Windows 10's cmd, it looks like this:
test.bat foo bar baz
foo bar baz
While Wine 3.0.2's cmd doesn't output anything. It appears to run right over the loop.
https://bugs.winehq.org/show_bug.cgi?id=45722
--- Comment #1 from Aaron Simmons paleozogt@gmail.com --- I'm not sure if this is related to #38558 or not.
https://bugs.winehq.org/show_bug.cgi?id=45722
Aaron Simmons paleozogt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paleozogt@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45722
--- Comment #2 from Aaron Simmons paleozogt@gmail.com --- It also happens with the latest development version (3.14).
https://bugs.winehq.org/show_bug.cgi?id=45722
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #3 from Jason Edmeades us@edmeades.me.uk --- Hmm - 2 problems here. The first is the echo isnt right, and the second is the issue I knew about in terms of goto inside a for.... Will have a play
https://bugs.winehq.org/show_bug.cgi?id=45722
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Assignee|wine-bugs@winehq.org |us@edmeades.me.uk Ever confirmed|0 |1
--- Comment #4 from Jason Edmeades us@edmeades.me.uk --- Confirming - I have a local fix but in summary the problem is it doesnt like the tokens=1,* type syntax, only handling tokens=1* (and a bug in there too). goto inside for actually looks ok now (maybe I fixed that before!). Patch is in my list, will send soon.
https://bugs.winehq.org/show_bug.cgi?id=45722
--- Comment #5 from Jason Edmeades us@edmeades.me.uk --- https://www.winehq.org/pipermail/wine-devel/2018-September/131877.html
https://bugs.winehq.org/show_bug.cgi?id=45722
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |1a7333bec627a31a43d380ecc63 | |e5792e302373e
--- Comment #6 from Jason Edmeades us@edmeades.me.uk --- Committed
https://bugs.winehq.org/show_bug.cgi?id=45722
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.16.
https://bugs.winehq.org/show_bug.cgi?id=45722
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=45722
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #8 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bug fixes included in 3.0.4.