mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:08:10 +00:00
Shell: Remove '#' from the list of acceptable bareword characters
This stops the shell from always interpreting '#' as the start of a comment in non-Posix mode.
This commit is contained in:
parent
4afd782477
commit
4b60a99573
3 changed files with 8 additions and 8 deletions
|
@ -1913,7 +1913,7 @@ RefPtr<AST::Node> Parser::parse_bareword()
|
|||
auto rule_start = push_start();
|
||||
StringBuilder builder;
|
||||
auto is_acceptable_bareword_character = [&](char c) {
|
||||
return strchr("\\\"'*$&#|(){} ?;<>\n", c) == nullptr
|
||||
return strchr("\\\"'*$&|(){} ?;<>\n", c) == nullptr
|
||||
&& !m_extra_chars_not_allowed_in_barewords.contains_slow(c);
|
||||
};
|
||||
while (!at_end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue