You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CAPTAIN probe verdict: CONFIRMED — the condition-(a) false trigger is real
A captain probe lane (2026-11-20) tested the theoretical false-trigger against the GNU bash 5.3.20 oracle with 124 script-file probes over five rounds (round 5's supplementary controls were not retrieved due to host load; rounds 1–4 are decisive). The heuristic existence check is empirically broken.
Minimal repro
IFS=': '
V=
W=
:>${W:-'}'}:'a:b'echo"rc=$?"
GNU bash 5.3.20: rc=0, creates }:a:b (one field).
rubash (pristine master ff966865): rc=1, ${W:-'}'}:'a:b': ambiguous redirect, no file.
Three elements are jointly necessary, each established by ablation: (1) a quote-containing ${...} span before the quoted IFS segment; (2) a literal IFS character between span and segment carrying IFS_GLUE from mark_literal_ifs_chars (the : here) — replacing it with a non-IFS char (R1) or removing it (M4) makes both sides agree; (3) the quoted IFS segment whose protection depends on the simulation record. 13 shapes in the family confirmed, including the issue's literal quoted-blank form (R4). Position matters: the same span after the segment, or glue before the span, does not trigger.
Loci
Verdict: expand_redirect_target in src/executor/expand_word.rs (condition (a) is the whole-string existence check over IFS_GLUE/ANSI_C_IFS_GUARD). Glue channel: mark_literal_ifs_chars (command_prepare.rs), unconditional, quote-blind. Simulation channel: mark_quoted_ifs_from_raw (same file) with its equality guard; whether the loss is the guard bailing or a position-record offset under "span first + intervening glue" is left for the fix lane to settle by instrumentation (the suffix-position controls exclude an unconditional-bail model).
Captain's ruling
This is a real bug, P2 magnitude — not a 1.5.1 ignition blocker. The trigger needs a deep same-word construction (custom IFS with a non-blank char + quote-containing span + intervening glue + quoted IFS segment); the failure is loud (rc=1 diagnostic, no wrong file, no silent data loss); there are no external reports; the [bug] Redirect target joining a quoted space segment with a substitution reports "ambiguous redirect" #3089 main face stands (100+ control shapes regression-free in this matrix).
Fix direction is as the issue prescribes: thread the per-word actual protection state (did the simulation reproduce; which positions really got marked) from command_prepare.rs to the verdict point, and base conditions (a)/(b) on that fact — no per-shape patches. The fix rides the 1.5.1 wave; this issue stays open as its tracking issue.
Activity
caomengxuan666 commentedon Nov 11, 2026
按用户 2026-11-11 令,队长未完工的 rubash 队列整体移交 Uarz,本单 assignee 改为 Uarz。
规矩见置顶单 #3341:assignee 即认领;先对照 GNU bash 5.3 源码定语义(引 file:line)再修、按机制修不打地鼠;每个修复带仓内回归钉并给出 fail-first 证据;第一笔提交即开 draft PR;不自合、不自关;正文 Fixes/Refs 口径与同句误关单纪律照 #3341。开工前先查本单是否已有 open PR 覆盖,有则先审 PR、不另起实现。
caomengxuan666 commentedon Nov 12, 2026
开工:队长车道临时接手(Uarz 休息期间)。先在现 master 上复现该理论误触并以探针固定;若无法复现或证伪,带证据停手交回,不硬修。
caomengxuan666 commentedon Nov 20, 2026
CAPTAIN probe verdict: CONFIRMED — the condition-(a) false trigger is real
A captain probe lane (2026-11-20) tested the theoretical false-trigger against the GNU bash 5.3.20 oracle with 124 script-file probes over five rounds (round 5's supplementary controls were not retrieved due to host load; rounds 1–4 are decisive). The heuristic existence check is empirically broken.
Minimal repro
rc=0, creates}:a:b(one field).ff966865):rc=1,${W:-'}'}:'a:b': ambiguous redirect, no file.Three elements are jointly necessary, each established by ablation: (1) a quote-containing
${...}span before the quoted IFS segment; (2) a literal IFS character between span and segment carrying IFS_GLUE frommark_literal_ifs_chars(the:here) — replacing it with a non-IFS char (R1) or removing it (M4) makes both sides agree; (3) the quoted IFS segment whose protection depends on the simulation record. 13 shapes in the family confirmed, including the issue's literal quoted-blank form (R4). Position matters: the same span after the segment, or glue before the span, does not trigger.Loci
Verdict:
expand_redirect_targetinsrc/executor/expand_word.rs(condition (a) is the whole-string existence check overIFS_GLUE/ANSI_C_IFS_GUARD). Glue channel:mark_literal_ifs_chars(command_prepare.rs), unconditional, quote-blind. Simulation channel:mark_quoted_ifs_from_raw(same file) with its equality guard; whether the loss is the guard bailing or a position-record offset under "span first + intervening glue" is left for the fix lane to settle by instrumentation (the suffix-position controls exclude an unconditional-bail model).Captain's ruling
command_prepare.rsto the verdict point, and base conditions (a)/(b) on that fact — no per-shape patches. The fix rides the 1.5.1 wave; this issue stays open as its tracking issue.${}defaults unprotected, no carrier needed) and [gnu-baseline] double-quoted ${} span boundary: quoted } inside default ends span early, filename diverges from GNU #4004 (parse face: quoted}ends a double-quoted${}span early, filename diverges). [gnu-baseline] quoted non-blank IFS chars inside ${} defaults lose protection: false ambiguous redirect (condition-(b) sibling of #3263) #4003 is expected to fall to the same protection-state threading; [gnu-baseline] double-quoted ${} span boundary: quoted } inside default ends span early, filename diverges from GNU #4004 is independent.Probes ran on cloud against the oracle (
5.3.20(1)-release) and a build verified file-identical to pristineff966865on all five relevant sources.fix(expand): propagate quoted-IFS simulation signal instead of IFS_GL…
caomengxuan666 commentedon Nov 21, 2026
CAPTAIN-VERIFY(PR #4073 合入,merge commit
eb39c97f)simulated == cooked),正是本单定谳指定的修复方向;与 fix(expand): protect quoted non-blank IFS chars in ${...} operator RHS (Fixes #4003) #4015(修 [gnu-baseline] quoted non-blank IFS chars inside ${} defaults lose protection: false ambiguous redirect (condition-(b) sibling of #3263) #4003)零文件交集、机制互补,[gnu-baseline] quoted non-blank IFS chars inside ${} defaults lose protection: false ambiguous redirect (condition-(b) sibling of #3263) #4003 不随本单关闭(仍 open,归 fix(expand): protect quoted non-blank IFS chars in ${...} operator RHS (Fixes #4003) #4015)。38eb719c(真父 4d91292 → 现行 master 三方组装,逐文件统计与原 PR 全等)run 44925539825,对 master 本体 run 44924499713 名集差分——PR 独有 FAIL 仅 issue2340 轮换名一枚;失败 job 集与基线相同(census + goldens);本体钉 2/2 PASS;canary success。${W:-'}'}:'a:b'(IFS=': ')GNU rc=0 并建文件}:a:b,探针族(含消融与负向守卫)全合定谳。a3,)收紧为确定断言,列后续小修、不阻塞本单关闭。fix(expand): propagate quoted-IFS simulation signal instead of IFS_GL…
fix(redir): materialize undo-save slot saturation EMFILE diagnostics (F…