https://bugs.winehq.org/show_bug.cgi?id=44373
--- Comment #1 from Ryan Prichard ryan.prichard@gmail.com --- The case canonicalization differences can also affect %1:
c:\Bin\ShowArg1.Cmd
@echo [%1] -------------------- [%~d1] [%~p1] [%~n1] [%~x1]
Win10.0.16299.125:
C:\Windows>c:\Bin\ShowArg1 SysTem32\NotePad.Exe [SysTem32\NotePad.Exe] -------------------- [C:] [\Windows\System32] [notepad] [.exe]
C:\Windows>c:\Bin\ShowArg1 "SysTem32\NotePad.Exe" ["SysTem32\NotePad.Exe"] -------------------- [C:] [\Windows\System32] [notepad] [.exe]
C:\Windows>c:\Bin\ShowArg1 "SysTem32\NotePad".Exe ["SysTem32\NotePad".Exe] -------------------- [C:] [\Windows\System32] [NotePad"] [.Exe]
C:\Windows>c:\Bin\ShowArg1 Sys"Tem32\NotePad".Exe [Sys"Tem32\NotePad".Exe] -------------------- [C:] [\Windows\Sys"Tem32] [NotePad"] [.Exe]
C:\Windows>c:\Bin\ShowArg1 Sys"Tem"32\NotePad.Exe [Sys"Tem"32\NotePad.Exe] -------------------- [C:] [\Windows\Sys"Tem"32] [NotePad] [.Exe]
Wine 3.0-rc6:
C:\windows>c:\Bin\ShowArg1 SysTem32\NotePad.Exe [SysTem32\NotePad.Exe] -------------------- [C:] [\windows\SysTem32] [NotePad] [.Exe]
C:\windows>c:\Bin\ShowArg1 "SysTem32\NotePad.Exe" ["SysTem32\NotePad.Exe"] -------------------- [C:] [\windows\SysTem32] [NotePad] [.Exe]
C:\windows>c:\Bin\ShowArg1 "SysTem32\NotePad".Exe ["SysTem32\NotePad".Exe] -------------------- [C:] [\windows\SysTem32] [NotePad] [.Exe]
C:\windows>c:\Bin\ShowArg1 Sys"Tem32\NotePad".Exe [Sys"Tem32\NotePad".Exe] -------------------- [C:] [\windows\SysTem32] [NotePad] [.Exe]
C:\windows>c:\Bin\ShowArg1 Sys"Tem"32\NotePad.Exe [Sys"Tem"32\NotePad.Exe] -------------------- [C:] [\windows\SysTem32] [NotePad] [.Exe]