[build2] Shell expansion in compiler arguments?
Boris Kolpackov
boris at codesynthesis.com
Mon Apr 8 11:11:45 UTC 2019
David Cohoe <sudgylacmoe at gmail.com> writes:
> That partly works, but wx-config returns several different arguments,
> and build2 seems to be quoting them making g++ think that it's all one
> argument. Is there a way to unquote the string?
I would use $regex.split() for that:
// $regex.split(<val>, <pat>, <fmt>[, <flags>])
//
// Split a value of an arbitrary type into a list of unmatched value parts
// and replacements of the matched parts, omitting empty ones. Convert the
// value to string prior to matching.
//
// Substitution escape sequences are extended with a subset of Perl
// sequences (see libbutl/regex.mxx for details).
//
// The following flags are supported:
//
// icase - match ignoring case
//
// format_no_copy - do not copy unmatched value parts into the result
//
Here is an example:
https://lists.build2.org/archives/users/2017-September/000092.html
More information about the users
mailing list