Shell: Fix parsing $ with unknown character

This commit is contained in:
Bananymous 2023-10-12 22:24:27 +03:00
parent a2b5e71654
commit f0820e6f24
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,9 @@ BAN::Optional<BAN::String> parse_dollar(BAN::StringView command, size_t& i)
return output;
}
return "$"sv;
BAN::String temp = "$"sv;
MUST(temp.push_back(command[i]));
return temp;
}
BAN::StringView strip_whitespace(BAN::StringView sv)