From ad7d4bd0722aa70ba634900cebf93a1b1814fed9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 23 Jul 2016 16:09:49 +0200 Subject: Only do "effective escaping" (['"\$(]) on the command line This will make things more convenient on Windows provided we use "sane" paths (no spaces, no (), etc). --- build2/parser.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/parser.cxx') diff --git a/build2/parser.cxx b/build2/parser.cxx index 99e4227..a64a94e 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -2680,7 +2680,10 @@ namespace build2 { path_ = &name; - lexer l (is, *path_, &paren_processor); + // We do "effective escaping" and only for ['"\$(] (basically what's + // necessary inside a double-quoted literal plus the single quote). + // + lexer l (is, *path_, "\'\"\\$(", &paren_processor); lexer_ = &l; target_ = nullptr; scope_ = root_ = global_scope; -- cgit v1.1