Skip to content

calls: shell time/exec wrappers, scheme first let binding (Part of #5640) - #5908

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5640-20261021T2011Z
Oct 21, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5640-20261021T2011Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5640. Follow-up to #5812.

What changed

  • shell: time foo, time -p foo, exec foo, nohup foo, nice foo, sudo foo name the command after the prefix (it was time/exec ignored, foo lost). Bare exec >log, exec 3>&1, time stay ignored.
  • scheme: the first binding name of a let/let*/letrec/letrec* list is not a call. Fixed-width lookbehinds, so the family pattern keeps one group.
  • docs/calls_out_rule_contract.md: lua, scheme, shell, tcl rows.
  • Goldens re-blessed: the only diffs are shell calls_out_to (sudo/env/nohup replaced by the command they run, e.g. modprobe, nsenter, timeout).

Class table

shape status
lua call after .. / not already extracted; pinned in #5812 tests
tcl command after } in foreach / namespace eval already extracted; pinned (new test)
shell time foo / exec foo fixed here
scheme let first binding fixed here
tcl one-line switch arm body (x { doX }) open: Sibling gap
scheme named-let first binding, later bindings open: Sibling gap

Evidence: pr_gates --fast 7/7, --ratchets 8/8; 69+ tests in test_calls_out_small_shapes_5640.py; scheme/shell/tcl/lua extraction tests 917 pass.

Sibling gaps

  • tcl one-line switch arm body: the label reads as the command and the body is missed; a regex cannot tell a label from a script-taking custom command (with_lock { work }) without switch context.
  • scheme (let loop ((i ..))) first binding and second+ bindings: need variable-width context (lookbehind is fixed-width).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 21, 2026 20:32
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 20:38
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant