forked from Bananymous/banan-os
Shell: Allow escaping spaces in commands
This commit is contained in:
parent
ae073a336d
commit
4f7828bab9
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue