From 48b01da4d365a3a2b689c7374904fe6ba5e63520 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 9 Jul 2012 14:09:01 +0200 Subject: [PATCH] deal with %PATH% containing parentheses we need to make cmd escape the expanded output, so it doesn't confuse its own command line parsing (which happens later!). Change-Id: I0c2c71d276c0aebe3c2163f7f08db8050a14d7ce Reviewed-by: Friedemann Kleint --- mkspecs/features/qt_functions.prf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf index fe7b29a..ee5acbc 100644 --- a/mkspecs/features/qt_functions.prf +++ b/mkspecs/features/qt_functions.prf @@ -157,7 +157,8 @@ defineTest(qtPrepareTool) { error("Operating system not supported.") $$1 = "$$var=$$join(deppath, :)${$$var:+:\$$$var} $$eval($$1)" } else { - $$1 = "(set PATH=$$join(deppath, ;);%PATH%) & $$eval($$1)" + # Escape closing parens when expanding %PATH%, otherwise cmd confuses itself. + $$1 = "(set PATH=$$join(deppath, ;);%PATH:)=^)%) & $$eval($$1)" } } -- 2.7.4