Skip to content

共享 diagnostic.rs / exec.rs 冷路径字面前缀收敛(待 #2968/#3214 合入后派) #3256

Closed

Description

@caomengxuan666

现象

共享诊断冷路径仍存字面 "rubash: " fallback,未迁往 #3193 的单一派生链:

归宿(gated)

门控:PR #2968 与 PR #3214 双合入后派收敛车道——将 diagnostic.rs 两/三函数与 exec.rs 三处入参一并迁往 builtins::prefix 链(PR #3247 §5 已备派生源);此前动此面必与两 PR 撞车,不派。证据全文:~/workspace/fix-W-PREFIX/REPORT.md §6 草案 G3 与裁定表 13–20。

Activity

  1. added this to the 1.5.1 milestone on Nov 10, 2026
  2. added
    bug
    gnu-baseline
    on Nov 10, 2026
  3. caomengxuan666 commented on Nov 11, 2026

    @caomengxuan666
    MemberAuthor

    Converged in full — closing as fixed on master.

    The census face of this issue is now completely disposed, in the two waves the split delivery planned:

    • Wave 1 — PR builtins: converge exec option-parse prefix args onto the shared derivation chain (Refs #3256) #3352 (merged 20ba3aea): the three provably byte-identical sink faces in src/builtins/exec.rs moved onto the builtins::prefix derivation chain.
    • Wave 2 — PR builtins: migrate the remaining diagnostic prefix faces onto the shared argv0 chain #3356 (merged 8f904d3fe7b039220bae91f0e2c2dc160b43d109): the remaining ten faces migrated after the renamed-invocation matrix experiment established that GNU has exactly one diagnostic name source and no fixed product-name arm (experiment record: ~/workspace/fix-3256/REPORT.md §6, GNU-side anchors error.c:90-120, error.c:275-281, shell.c:1797/1804). The wave added the chain's sys_error_prefix renderer, normalized all five Lib prolog faces to the basename derivation, deleted the trap_exec.rs literal-rewrite shim with a regression lock on its old service path, and aligned the cd/TIMEFORMAT test expectations to the GNU shapes. Captain review: new pin tests/issue3256_renamed_prefix_matrix.rs 9/9 on the head, 3 green / 6 red top-up on the base with the reds matching the experiment's four divergence classes one-for-one; lib bilateral failure name-sets empty; final-head CI zero red.

    Two dispositions that do not ride with this closure:

    • The empty-argv[0] seed divergence found by the same experiment ($0 seeded as /, diagnostics print /: … where GNU prints the empty name) is filed separately as 空 argv[0] 调用时 $0 被种成 /、诊断印 /: …(GNU 印空名) #3355 and stays open on its own track.
    • The eval arm of builtin_error_prefix is a disclosed measurement gap, not a silent skip: its current shape is locked by an API-level pin, but it has never been measured against GNU eval frames. Recorded here as the trigger condition — before any future change to that arm, measure the GNU eval-frame behaviour first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buggnu-baseline

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions