Skip to content

calls: shell subshell, <(cmd), VAR=1/redirect prefix, trap handler, $(a | cmd) (Part of #5640) - #6074

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5640-shell-calls
Oct 22, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5640-shell-calls

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5640 (slice 1 of 4: shape 1, shell). The remaining #5640 shapes (Scheme lambda, Lua after ../not, Tcl after }) are slices 2-4: earlier PRs (#5812, #5908) already pinned them as extracting, so they need re-measuring against the #5630 oracle first.

What changed

calls_out for shell (languages/shell.py) already treated command words as calls (#5728, #5812, #5908). It missed these command positions, now added:

Class member Status
subshell ( cmd ), (cd d && cmd) fixed
process substitution <(cmd), < <(cmd) fixed
FOO=1 BAR=2 cmd assignment prefix fixed
redirect prefix >/dev/null cmd, 2>&1 cmd fixed
trap handler SIG (handler by name; trap EXIT / trap - EXIT are not) fixed
pipeline / list stage inside $( ... ) ($(a | cmd), &&, ||) fixed
sourced files (source "$DIR/lib.sh", . ./lib.sh) already resolved; pinned by a resolver test over three files
$(cmd), &&, ||, pipelines at line level, case arms already worked; pinned

Negatives pinned: arrays =(a b), ((x)), $(( x )), regex groups =~ ^(a|b), FOO=1 alone, trap '' INT.

Golden

Shell function rows (calls_out_to, fan_in/out, edges, pagerank) and the network metrics derived from them. I read the added names: real commands (go telemetry after HOME=... , mkdir, tar, ...) plus the noise listed under sibling gaps. The resolver drops names the script does not define.

Gates

pr_gates --fast 7/7, --ratchets 9/9, crucible_check both legs PASS, pre-PR guard tests and per-test time check pass.

Lessons for agents

  • ~/.cache/gitgalaxy/ruff-<ver> is a directory: the binary is at <dir>/bin/ruff. CI ruff moved to 0.17.0; format with that one.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 22, 2026 17:25
… trap handler, pipeline stage in $(...) (Part of #5640)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 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 22, 2026 22:02
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 22:06
@squid-protocol
squid-protocol merged commit ff84f14 into main Oct 22, 2026
103 checks passed
@squid-protocol
squid-protocol deleted the churn/5640-shell-calls branch October 22, 2026 22:13
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