b921b67db7
- Added `ensure_trailing_newline_for_heredoc` to normalize commands by appending a newline for heredoc inputs missing one. - Applied the helper in both one-shot and streaming shell execution paths before invoking `run_string`. - Added a regression test for quoted heredocs at EOF in Unix and documented the fix in the natives changelog.