Skip to content

Read a Process Substitution as One Word in the Write Guard's Commit and Merge Walks #3073

Closed

Description

@ptr727

Context

Found by the local review of the lane closing #3006, whose new merge check shares the defect with the existing commit check. It was confirmed with classify probes on constructed commands.

A Process Substitution Is Read as Words of the Command It Feeds

_region_end reads through a <(...) a command opens, so the run-time word checks walk the substitution's inner words and its closing ) as the command's own words. A process substitution that expands nothing still fails closed:

  • git commit -F <(cat msg.txt) is denied, naming ) as the run-time word.
  • gh pr merge 5 -s --body-file <(cat body.md) is denied the same way.
  • gh pr merge 5 -s --body-file <(git log -1 --format=%B "$SHA") is denied on $SHA, a word gh never sees.

The command reads one path, the substitution's file descriptor. Each of these is a false deny, never a false allow.

Possible Direction

Read a <(...) or >(...) in the commit and merge argument walks as one word, a path, and leave its body to the checks that read substitution bodies as commands of their own. One fix covers both sites.

Activity

  1. added
    introduced
    script
    on Oct 15, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

    introducedscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions