[Bug 21382] New: %~dp0 does not expand to right value
wine-bugs at winehq.org
wine-bugs at winehq.org
Fri Jan 15 16:14:23 CST 2010
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 at winehq.org
ReportedBy: dank at 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.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list