https://bugs.winehq.org/show_bug.cgi?id=45725
Bug ID: 45725 Summary: if exist fails if path has trailing slash Product: Wine Version: 3.0.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: paleozogt@gmail.com Distribution: ---
Created attachment 62154 --> https://bugs.winehq.org/attachment.cgi?id=62154 example of if exist with/without slashes
cmd's "if exist" fails if the path includes a trailing slash.
For example, this
if exist "C:\Program Files (x86)" @echo without slash exists
will print
without slash exists
while this
if exist "C:\Program Files (x86)" @echo with slash exists
will print nothing.
On Windows 10's cmd, it will work for both cases.