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)
Change History (5)
by , 14 years ago
Attachment: | build.bat.patch added |
---|
by , 14 years ago
Attachment: | build.jam.patch added |
---|
comment:1 by , 14 years ago
Milestone: | Boost 1.36.0 → Boost.Jam 3.1.17 |
---|---|
Status: | new → assigned |
comment:2 by , 14 years ago
Milestone: | Boost.Jam 3.1.17 → To Be Determined |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
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.