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.