[Bug 15359] cmd's "for" command doesn't handle /F. Breaks msysgit, firefox build.
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Dec 23 20:54:20 CST 2009
http://bugs.winehq.org/show_bug.cgi?id=15359
--- Comment #14 from Dan Kegel <dank at kegel.com> 2009-12-23 20:54:20 ---
It seems the command in #11 is an idiom for getting a fully qualified path
to the directory containing the current batch file:
for /F "delims=" %%I in ("%~dp0..") do set dir=%%~fI
delims= avoids breaking the path at a space
%~dp0.. = drive letter and path of the script followed by .. to get containing
dir
%%~fI = fully qualified name for %%I (this strips off the trailing \..)
leaves dir set to a nice absolute path to the batch file, useful for finding
neighboring scripts or data files.
--
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