From 77c917b1ef3aa64f473f0c9d3d18238cac88aeaa Mon Sep 17 00:00:00 2001 From: pauliyobo Date: Fri, 5 Jun 2026 13:39:51 +0200 Subject: [PATCH 1/2] use shlex tokenization when parsing dot commands arguments --- cli/app.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/app.rs b/cli/app.rs index ff02d17130..8532600d87 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -780,20 +780,20 @@ impl Limbo { pub fn handle_dot_command(&mut self, line: &str) { let first = line.split_whitespace().next(); + let args = shlex::split(line).unwrap_or_else(|| { + line.split_whitespace() + .map(str::to_owned) + .collect::>() + }); + let parse = match first { Some("parameter") | Some("param") => { - let args = shlex::split(line).unwrap_or_else(|| { - line.split_whitespace() - .map(str::to_owned) - .collect::>() - }); if args.is_empty() { return; } CommandParser::try_parse_from(args) } _ => { - let args = line.split_whitespace(); CommandParser::try_parse_from(args) } }; From 6ff4e425fbbc7c0873626bf05cff5bc6bc82860f Mon Sep 17 00:00:00 2001 From: pauliyobo Date: Fri, 5 Jun 2026 15:11:59 +0200 Subject: [PATCH 2/2] run cargo fmt --- cli/app.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/app.rs b/cli/app.rs index 8532600d87..3fab85b867 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -793,9 +793,7 @@ impl Limbo { } CommandParser::try_parse_from(args) } - _ => { - CommandParser::try_parse_from(args) - } + _ => CommandParser::try_parse_from(args), }; match parse { Err(err) => {