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.
https://bugs.winehq.org/show_bug.cgi?id=45725
Aaron Simmons paleozogt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paleozogt@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45725
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |dark.shadow4@web.de Status|UNCONFIRMED |NEW
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=45725
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #2 from Jason Edmeades us@edmeades.me.uk --- Is this not just fixed by commit https://source.winehq.org/git/wine.git/commit/bc9d68bcbee5c9d4f4582f766a4f55... ?
https://bugs.winehq.org/show_bug.cgi?id=45725
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED
--- Comment #3 from Jason Edmeades us@edmeades.me.uk --- Confirmed - dup of 45506 whose fix went into git today - please try with latest or next wine release please. Thanks for raising
*** This bug has been marked as a duplicate of bug 45506 ***
https://bugs.winehq.org/show_bug.cgi?id=45725
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate