diff --git a/userspace/programs/Shell/main.cpp b/userspace/programs/Shell/main.cpp index a61a673e..3e5c0615 100644 --- a/userspace/programs/Shell/main.cpp +++ b/userspace/programs/Shell/main.cpp @@ -197,6 +197,18 @@ BAN::Vector> parse_command(BAN::StringView command_view { char c = command_view[i]; + if (i + 1 < command_view.size() && c == '\\') + { + char next = command_view[i + 1]; + if (next == '\'' || next == '"') + { + if (i + 1 < command_view.size()) + MUST(current_arg.push_back(next)); + i++; + continue; + } + } + switch (state) { case State::Normal: