[BUG] `%s` arguments are concatenated
Closed this issue · 1 comments
midrare commented
Description
If you use %s
with more than one argument, the first two args get concatenated. For example, demo.exe 1 2 3
results in ["12", "3"]
being sent to the exe.
win-shim version: 1.1.2
Windows 11 Pro 22H2
Reproducible demo
C:\bin>shmake -i "cmd.exe" -o demo.exe -a "/c echo %s"
Windows Shim Maker v1.1.2 by @aloneguid (https://github.com/aloneguid/win-shim)
virtualizing 'cmd.exe'
input: C:\Windows\SYSTEM32\cmd.exe
capabilities: clipboard
output: C:\bin\demo.exe
args: /c echo %s
extracting terminal shim... ok.
mirroring properties... ver... icon... ok.
configuring startup sequence... ok.
C:\bin>demo.exe 1 2 3
12 3
aloneguid commented
Feel free to fix it if you like.