1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 14:47:35 +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:
Ali Mohammad Pur 2023-04-18 16:48:01 +03:30 committed by Ali Mohammad Pur
parent 93413f8682
commit 7b031138fc
4 changed files with 11 additions and 1 deletions

View file

@ -54,6 +54,7 @@ private:
{
if (eof())
return;
handle_heredoc_contents();
m_token_index++;
}
bool eof() const