https://bugs.winehq.org/show_bug.cgi?id=55130
Bug ID: 55130 Summary: IF EXIST fails when its argument ends on a slash Product: Wine Version: 8.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: madebr@gmail.com Distribution: ---
When a folder argument of IF EXIST ends on a slash, it will report the argument as not existing, even though it is.
``` rd /s /q folder mkdir folder if exist folder echo "Folder exists" if not exist folder/ echo "BAD! FOLDER DOES EXIST ACTUALLY" ```
This prints the message "BAD! FOLDER DOES EXIST ACTUALLY", where it shouldn't.
https://bugs.winehq.org/show_bug.cgi?id=55130
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Confirming. On Win7 this works.
https://bugs.winehq.org/show_bug.cgi?id=55130
--- Comment #2 from Maarten madebr@gmail.com --- https://gitlab.winehq.org/wine/wine/-/merge_requests/3154
https://bugs.winehq.org/show_bug.cgi?id=55130
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |5e2f9996baedbe389df93255a4d | |d1188cbdb6c56
--- Comment #3 from Vijay Kamuju infyquest@gmail.com --- Fix committed - https://source.winehq.org/git/wine.git/commitdiff/5e2f9996baedbe389df93255a4...
https://bugs.winehq.org/show_bug.cgi?id=55130
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.13.