From 0169ccf15719d81a4799fdd8b51fee6a318f7d80 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 4 Nov 2003 08:50:43 -0500 Subject: [PATCH] BUG: Cannot add extra escapes for backslashes because it makes the behavior inconsistent with previous versions of cmake. --- Source/cmAddTestCommand.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx index 4a2cb2092..ec04928b3 100644 --- a/Source/cmAddTestCommand.cxx +++ b/Source/cmAddTestCommand.cxx @@ -72,8 +72,10 @@ void cmAddTestCommand::FinalPass() fout << " \""; for(std::string::iterator c = it->begin(); c != it->end(); ++c) { - // Escape quotes and backslashes within arguments. - if((*c == '"') || (*c == '\\')) + // Escape quotes within arguments. We should escape + // backslashes too but we cannot because it makes the result + // inconsistent with previous behavior of this command. + if((*c == '"')) { fout << '\\'; }