mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Shell: Correctly handle commands after heredoc contents
Previously we did not emit a newline after the ending heredoc key, which wreaked havoc on the parser logic, leading to parse errors.
This commit is contained in:
parent
93413f8682
commit
7b031138fc
4 changed files with 11 additions and 1 deletions
|
@ -321,6 +321,8 @@ struct Token {
|
|||
return Token::Type::Great;
|
||||
if (name == "<"sv)
|
||||
return Token::Type::Less;
|
||||
if (name == "\n"sv)
|
||||
return Token::Type::Newline;
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue