Shell: Allow escaping spaces in commands

This commit is contained in:
Bananymous 2024-10-06 18:18:22 +03:00
parent ae073a336d
commit 4f7828bab9
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ static PipedCommand parse_piped_command(BAN::StringView command_view)
if (i + 1 < command_view.size() && c == '\\') if (i + 1 < command_view.size() && c == '\\')
{ {
char next = command_view[i + 1]; char next = command_view[i + 1];
if (next == '\'' || next == '"') if (next == '\'' || next == '"' || next == ' ')
{ {
if (i + 1 < command_view.size()) if (i + 1 < command_view.size())
MUST(current_argument.push_back(next)); MUST(current_argument.push_back(next));