http://bugs.winehq.org/show_bug.cgi?id=21382
Summary: %~dp0 does not expand to right value Product: Wine Version: 1.1.36 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Create 'foo.bat' containing echo This batch file lives in %~dp0 When you run it, it should output the absolute drive and directory of the directory containing the batch file. This seems to work ok in casual use... but if you put the batch file into, say, C:\foobar\foo.bat and do $ wine cmd c:> PATH %PATH%;c:\foobar c:> foo you will see the name of the current directory, not the expected c:\foobar.
This breaks lots of batch files, including http://src.chromium.org/svn/trunk/tools/depot_tools/gclient.bat which normally are run via PATH by developers who work from the commandline.