From 4f7828bab944aaefd22d1d12331c36f734c002f5 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 6 Oct 2024 18:18:22 +0300 Subject: [PATCH] Shell: Allow escaping spaces in commands --- userspace/programs/Shell/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/programs/Shell/main.cpp b/userspace/programs/Shell/main.cpp index e217a35c86..4a6ba00990 100644 --- a/userspace/programs/Shell/main.cpp +++ b/userspace/programs/Shell/main.cpp @@ -225,7 +225,7 @@ static PipedCommand parse_piped_command(BAN::StringView command_view) if (i + 1 < command_view.size() && c == '\\') { char next = command_view[i + 1]; - if (next == '\'' || next == '"') + if (next == '\'' || next == '"' || next == ' ') { if (i + 1 < command_view.size()) MUST(current_argument.push_back(next));