Regular expression commands now print the command that results from expanding the regular expression command.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@116320 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandObjectRegexCommand.cpp b/source/Interpreter/CommandObjectRegexCommand.cpp
index 534038a..405c94d 100644
--- a/source/Interpreter/CommandObjectRegexCommand.cpp
+++ b/source/Interpreter/CommandObjectRegexCommand.cpp
@@ -87,15 +87,14 @@
}
}
// Interpret the new command and return this as the result!
-// if (m_options.verbose)
-// result.GetOutputStream().Printf("%s\n", new_command.c_str());
+ result.GetOutputStream().Printf("%s\n", new_command.c_str());
return m_interpreter.HandleCommand(new_command.c_str(), true, result);
}
}
result.SetStatus(eReturnStatusFailed);
- result.AppendErrorWithFormat("Command contents '%s' failed to match any regular expression in the '%s' regex command.\n",
- command,
- m_cmd_name.c_str());
+ result.AppendErrorWithFormat ("Command contents '%s' failed to match any regular expression in the '%s' regex command.\n",
+ command,
+ m_cmd_name.c_str());
return false;
}
result.AppendError("empty command passed to regular exression command");