Boost logo

Boost-Build :

From: Paul Bristow (paul.a.bristow_at_[hidden])
Date: 2020-09-10 15:02:58


> -----Original Message-----
> From: Boost-build <boost-build-bounces_at_[hidden]> On Behalf Of Chambers, Matthew via Boost-
> build
> Sent: 10 September 2020 15:34
> To: Boost.Build developer's and user's list <boost-build_at_[hidden]>
> Cc: Chambers, Matthew <matt.chambers42_at_[hidden]>
> Subject: [Boost-build] Percent signs in Windows paths
>
> I'm trying to pass a filename with a % in it to a run target and running into an issue with the %
> disappearing because of Windows cmd processing. If I double up the % in the run target, just like I
> would in a Windows batch file, it works. Should Boost.Build handle this automatically?

Do you need to escape the % ??

rule escape ( string : symbols : escape-symbol )

Escapes all of the characters in symbols using the escape symbol escape-symbol for the given string, and returns the escaped string.

https://boostorg.github.io/build/manual/develop/index.html

But as ever no example given to make this clear :-(

Might help?

Paul


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk