Shell: Fix parsing $ with unknown character

This commit is contained in:
Bananymous 2023-10-12 22:24:27 +03:00
parent adc5ff9e99
commit 8c792f9c6d
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)