[Bug 47798] New: Incorrect substring result using enableDelayedExpansion
WineHQ Bugzilla
wine-bugs at winehq.org
Tue Sep 24 12:51:44 CDT 2019
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 at winehq.org
Reporter: lois.diqual at 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.
More information about the wine-bugs
mailing list