aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2022-09-14 12:45:26 -0700
committerJim Ingham <jingham@apple.com>2022-09-14 14:49:51 -0700
commitf3d0bda5344e8429121cb50aba5502c1b399e5cd (patch)
treeb3b95abbc50b4bf612d5df07b19922e4c69df3fe /lldb/source/Interpreter/CommandObject.cpp
parente395915ac01ffd9b6cf743f361df7265f319a8c7 (diff)
downloadllvm-f3d0bda5344e8429121cb50aba5502c1b399e5cd.zip
llvm-f3d0bda5344e8429121cb50aba5502c1b399e5cd.tar.gz
llvm-f3d0bda5344e8429121cb50aba5502c1b399e5cd.tar.bz2
Revert "Revert "Be more careful to maintain quoting information when parsing commands.""
This reverts commit ac05bc0524c66c74278b26742896a4c634c034cf. I had incorrectly removed one set of checks in the option handling in Options::ParseAlias because I couldn't see what it is for. It was a bit obscure, but it handled the case where you pass "-something=other --" as the input_line, which caused the built-in "run" alias not to return the right value for IsDashDashCommand, causing TestHelp.py to fail.
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 5ab3392..4500378 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -727,7 +727,7 @@ bool CommandObjectParsed::Execute(const char *args_string,
}
if (!handled) {
for (auto entry : llvm::enumerate(cmd_args.entries())) {
- if (!entry.value().ref().empty() && entry.value().ref().front() == '`') {
+ if (!entry.value().ref().empty() && entry.value().GetQuoteChar() == '`') {
cmd_args.ReplaceArgumentAtIndex(
entry.index(),
m_interpreter.ProcessEmbeddedScriptCommands(entry.value().c_str()));