[Bug 45722] New: cmd for loop doesn't work with tokens and delims
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(a)winehq.org Reporter: paleozogt(a)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. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 --- Comment #1 from Aaron Simmons <paleozogt(a)gmail.com> --- I'm not sure if this is related to #38558 or not. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 Aaron Simmons <paleozogt(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paleozogt(a)gmail.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 --- Comment #2 from Aaron Simmons <paleozogt(a)gmail.com> --- It also happens with the latest development version (3.14). -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 Jason Edmeades <us(a)edmeades.me.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |us(a)edmeades.me.uk --- Comment #3 from Jason Edmeades <us(a)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 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 Jason Edmeades <us(a)edmeades.me.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Assignee|wine-bugs(a)winehq.org |us(a)edmeades.me.uk Ever confirmed|0 |1 --- Comment #4 from Jason Edmeades <us(a)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. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 --- Comment #5 from Jason Edmeades <us(a)edmeades.me.uk> --- https://www.winehq.org/pipermail/wine-devel/2018-September/131877.html -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 Jason Edmeades <us(a)edmeades.me.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |1a7333bec627a31a43d380ecc63 | |e5792e302373e --- Comment #6 from Jason Edmeades <us(a)edmeades.me.uk> --- Committed -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 3.16. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x -- 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.
https://bugs.winehq.org/show_bug.cgi?id=45722 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |--- --- Comment #8 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 3.0.x milestone from bug fixes included in 3.0.4. -- 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.
participants (1)
-
wine-bugs@winehq.org