http://bugs.winehq.org/show_bug.cgi?id=26885
Summary: del /s crashes if it encounters a directory containing a space Product: Wine Version: 1.3.18 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
The following little batch file crashes cmd:
mkdir "foo bar" cd "foo bar" echo hi > hi.dat cd .. del /s hi.dat cd "foo bar" if exist hi.dat echo Del /s failed if exist hi.dat del hi.dat cd .. rmdir "foo bar"
It's hard to fix because WCMD_delete() is complex, and when it recurses, it smashes stuff into a new commandline without quoting. (dir /s doesn't seem to have the same problem?)