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@winehq.org Reporter: lois.diqual@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"