BUG: Fixed display of custom command comments with quotes, dollars, and other special characters in them.

This commit is contained in:
Brad King
2006-10-04 18:52:29 -04:00
parent 038c9e27d7
commit 406f3554c7
7 changed files with 13 additions and 24 deletions

View File

@@ -204,8 +204,11 @@ public:
/** Escape the given string to be used as a command line argument in
the native build system shell. Optionally allow the build
system to replace make variable references. */
std::string EscapeForShell(const char* str, bool makeVars = false);
system to replace make variable references. Optionally adjust
escapes for the special case of passing to the native echo
command. */
std::string EscapeForShell(const char* str, bool makeVars = false,
bool forEcho = false);
/** Backwards-compatibility version of EscapeForShell. */
std::string EscapeForShellOldStyle(const char* str);