Skip to content

harness: guards read a command split by a tab or two spaces - #84

Merged
lneto merged 1 commit into
masterfrom
claude_bump_command_words
Nov 28, 2026
Merged

lneto merged 1 commit into
masterfrom
claude_bump_command_words

Conversation

@lneto

@lneto lneto commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

A guard of the harness lets a command through when two spaces, a tab, a quote or a line continuation splits its words: gh pr create opens a pull request with a fixup! on its head past fixup-guard.sh, and git<TAB>add -A stages the whole tree past stage-guard.sh.

Fifteen guards of the mount skip a command at once unless its text holds the words they act on, such as gh pr or git add. With this pull request they look for those words after joining and splitting the command as the shell does, so each refuses those spellings where it refuses the plain one. Every shell call pays about 100 ms more for it, with the guards run one after another.

This pull request moves the mount from 45938d5 to f7a36ac, which luainkernel/harness#73 merged.

Moves the mount from 45938d5 to f7a36ac, luainkernel/harness#73.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lneto lneto added the complexity: small One line or one file, with a trivial or existing test label Nov 28, 2026
@lneto
lneto merged commit 3960333 into master Nov 28, 2026
2 checks passed
@lneto
lneto deleted the claude_bump_command_words branch November 28, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity: small One line or one file, with a trivial or existing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant