[Bug 21382] New: %~dp0 does not expand to right value
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(a)winehq.org ReportedBy: dank(a)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.
http://bugs.winehq.org/show_bug.cgi?id=21382 --- Comment #1 from Dan Kegel <dank(a)kegel.com> 2010-01-15 17:07:19 --- Created an attachment (id=25746) --> (http://bugs.winehq.org/attachment.cgi?id=25746) First try at a fix Here's a simple patch that seems to make ~dp0 behave. Only lightly tested. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=21382 --- Comment #2 from Dan Kegel <dank(a)kegel.com> 2010-02-02 18:42:23 --- Created an attachment (id=26033) --> (http://bugs.winehq.org/attachment.cgi?id=26033) cmd testcase (for Jacek's test driver) Here's a simple test case. With my patch, it passes on Wine and on winetestbot. Without my patch, it fails on Wine. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=21382 Juan Lang <juan_lang(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Juan Lang <juan_lang(a)yahoo.com> 2010-02-03 15:51:48 --- Fixed by commit 60fe4dae7a8c93c6e9575f29ef7a6c1824b251bb. (I'll assume you'll still submit the test case once Jacek's test framework gets in.) -- 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.
http://bugs.winehq.org/show_bug.cgi?id=21382 --- Comment #4 from Dan Kegel <dank(a)kegel.com> 2010-02-03 15:53:01 --- Right. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=21382 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> 2010-02-05 11:39:16 --- Closing bugs fixed in 1.1.38. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=21382 --- Comment #6 from Juan Lang <juan_lang(a)yahoo.com> 2010-02-10 11:24:30 --- Ping: Jacek's cmd tests got committed, so you might try submitting the testcase. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=21382 --- Comment #7 from Dan Kegel <dank(a)kegel.com> 2010-02-10 12:13:05 --- Yeah, thanks. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=21382 --- Comment #8 from Dan Kegel <dank(a)kegel.com> 2010-02-11 12:24:04 --- test sent, http://www.winehq.org/pipermail/wine-patches/2010-February/084793.html -- 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.
participants (1)
-
wine-bugs@winehq.org