Skip to content

Blank Quotations After a Heredoc Label on Its Opening Line in Paste-Safe #4383

Done

Description

@ptr727

Problem

In prose_lint.py, shell_literals keeps the rest of a heredoc's opening line, after the label, as code. It does not blank the quotations on that part of the line. So paste-safe reports a placeholder that is already quoted when it sits after a heredoc on the same line.

Here is a constructed shell fence that paste-safe reports on develop:

cat <<'END' | tee "<file>"
body
END

The report reads "placeholder '' unquoted in a copy-and-run command". The placeholder is double-quoted, so the shell receives it as a literal, and no edit the message suggests clears the report.

Done when

shell_literals reads the rest of a heredoc's opening line the way the lexer reads any other code, with its quotations blanked. The constructed case above passes, and its twin with the placeholder unquoted still reports.

Found by a local review pass on #4382, which reads a second shell on that same part of the line.

Activity

  1. added
    pre-existing
    on Nov 24, 2026
  2. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-24): PR #4390 merged to develop at 6cb4990; branch and worktree cleaned up, so this claim holds no files. The issue closes on promotion.

    Backlog burndown claim (away run 2026-11-24, round 1, group 4): branch burndown/paste-safe-heredoc-quotes, issue #4383.

    Predicted files:

    • .github/actions/prose-gate/prose_lint.py, shell_literals.
    • tests/test_prose_lint.py.

    Any other group needing one of these files waits for this branch to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions