From 06092a31fd73d2752d1697b32fc93fb3b25c6920 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 8 Dec 2003 16:10:48 -0500 Subject: [PATCH] bug fix to escaped semicolons in arguments --- Source/cmSystemTools.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 8d1640d5c..48ba54e27 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -905,10 +905,12 @@ void cmSystemTools::ExpandListArgument(const std::string& arg, } newarg = arg.substr(start, len); } + // unescape semicolons std::string::size_type pos = newarg.find("\\;"); - if(pos != std::string::npos) + while (pos != std::string::npos) { newarg.erase(pos, 1); + pos = newarg.find("\\;"); } newargs.push_back(newarg); }