Opened 9 years ago

Closed 9 years ago

#9800 closed Bugs (fixed)

build.bat works incorrectly because REM commands have illegal )'s in them

Reported by: aoney@… Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description (last modified by Steven Watanabe)

The Windows cmd interpreter badly handles )'s in rem statements, *sometimes* (but not always) closing "if" statements they are nested within. Per docs, parens are illegal in rem commands (see technet.microsoft.com/en-us/library/bb490986.aspx).

On my Win7 64bit box, this was causing bootstrap vc12 to go down bizarre paths. One potential fix is to escape the parens, i.e. use ^( and ^) instead of () in comments. I wish I were making this up (sigh).

Change History (3)

comment:1 by aoney@…, 9 years ago

(thanks WikiFormatting). That should be "use caret-openParen and caret-closeParen", since caret is the escape character for batch files.

comment:2 by viboes, 9 years ago

Component: NoneBuilding Boost

comment:3 by Steven Watanabe, 9 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.