Shell: Fix parsing $ with unknown character
This commit is contained in:
parent
a2b5e71654
commit
f0820e6f24
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue