Opened 14 years ago

Closed 14 years ago

#2113 closed Bugs (fixed)

build.bat doesn't handle quotes correctly

Reported by: Steven Watanabe Owned by: René Rivera
Milestone: To Be Determined Component: bjam
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

I tried to use build.bat vc9 "--with-python=C:\Program Files\Python25" and kept getting error messages saying =C:\Program was unexpected at this time The fix is to replace "_%1_" with "_%~1_". Also, I had to add quotes to build.jam Patch attached.

Attachments (2)

build.bat.patch (1.6 KB ) - added by Steven Watanabe 14 years ago.
build.jam.patch (904 bytes ) - added by Steven Watanabe 14 years ago.

Download all attachments as: .zip

Change History (5)

by Steven Watanabe, 14 years ago

Attachment: build.bat.patch added

by Steven Watanabe, 14 years ago

Attachment: build.jam.patch added

comment:1 by René Rivera, 14 years ago

Milestone: Boost 1.36.0Boost.Jam 3.1.17
Status: newassigned

comment:2 by René Rivera, 14 years ago

Milestone: Boost.Jam 3.1.17To Be Determined

Using "%~1" has the drawback of not working on older CMD shells. And the general task of removing quotes around arguments, i.e. on variables in general, on CMD is fraught with painfully version specific and long code. Not sure how to resolve this problem.

As for the build.jam patch, I made an equivalent change that solves the problem for all args when running the commands.

comment:3 by René Rivera, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [49905]) Rework how arguments are parsed and tested to fix handling of quoted arguments, options arguments, and arguments with "=". (fixes #2113)

Note: See TracTickets for help on using tickets.