[Bug 47798] New: Incorrect substring result using enableDelayedExpansion
https://bugs.winehq.org/show_bug.cgi?id=47798 Bug ID: 47798 Summary: Incorrect substring result using enableDelayedExpansion Product: Wine Version: 4.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs(a)winehq.org Reporter: lois.diqual(a)gmail.com Distribution: --- Created attachment 65289 --> https://bugs.winehq.org/attachment.cgi?id=65289 Test file Batch variable substring yields incorrect results when using enableDelayedExpansion. setlocal enableDelayedExpansion set foo=bar echo "!foo:~0,2!" endlocal Expected output: "ba" Actual output: - Wine cmd: "~0,2" - Windows cmd: "ba" -- 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=47798 Axel Gembe <derago(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |derago(a)gmail.com --- Comment #1 from Axel Gembe <derago(a)gmail.com> --- This is likely a duplicate of https://bugs.winehq.org/show_bug.cgi?id=38289 -- 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=47798 Vijay Kamuju <infyquest(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED CC| |infyquest(a)gmail.com Fixed by SHA1| |6c39db0ca01a93003d2fbf2581f | |c2c3fcb3266c8 --- Comment #2 from Vijay Kamuju <infyquest(a)gmail.com> --- This is fixed in new cmd rewrite, if you are using !foo:~0,2! which is used only in powershell not normal bat file used. Fixed in https://source.winehq.org/git/wine.git/commit/6c39db0ca01a93003d2fbf2581fc2c... -- 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=47798 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 9.12. -- 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)
-
WineHQ Bugzilla