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.