Boost C++ Libraries: Ticket #2113: build.bat doesn't handle quotes correctly https://svn.boost.org/trac10/ticket/2113 <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2113 Trac 1.4.3 Steven Watanabe Sun, 13 Jul 2008 00:59:30 GMT attachment set https://svn.boost.org/trac10/ticket/2113 https://svn.boost.org/trac10/ticket/2113 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">build.bat.patch</span> </li> </ul> Ticket Steven Watanabe Sun, 13 Jul 2008 00:59:48 GMT attachment set https://svn.boost.org/trac10/ticket/2113 https://svn.boost.org/trac10/ticket/2113 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">build.jam.patch</span> </li> </ul> Ticket René Rivera Sun, 23 Nov 2008 00:09:55 GMT status, milestone changed https://svn.boost.org/trac10/ticket/2113#comment:1 https://svn.boost.org/trac10/ticket/2113#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost.Jam 3.1.17</span> </li> </ul> Ticket René Rivera Sun, 23 Nov 2008 05:08:03 GMT milestone changed https://svn.boost.org/trac10/ticket/2113#comment:2 https://svn.boost.org/trac10/ticket/2113#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost.Jam 3.1.17</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> 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. </p> <p> As for the build.jam patch, I made an equivalent change that solves the problem for all args when running the commands. </p> Ticket René Rivera Mon, 24 Nov 2008 02:03:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2113#comment:3 https://svn.boost.org/trac10/ticket/2113#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/49905" title="Rework how arguments are parsed and tested to fix handling of quoted ...">[49905]</a>) Rework how arguments are parsed and tested to fix handling of quoted arguments, options arguments, and arguments with "=". (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2113" title="#2113: Bugs: build.bat doesn't handle quotes correctly (closed: fixed)">#2113</a>) </p> Ticket