Skip to content

Compatibility attribution: current Bash ledger status pairs and remaining engine candidates #62

Closed

Description

@caomengxuan666

Compatibility Attribution Ledger

Current Bash actual rerun: commit a24c0379; raw artifact: target/issue-suites/results/bash-ledger-current-a24c0379/.

Current Counts

The authoritative results.tsv contains 83 test rows: 13 PASS and 70 raw DIFF. The runner summary says TOTAL=82 because its summary loop skips the real test named test; counts here are recomputed from all rows.

Status pairs:

0/0=41, 0/1=3, 0/2=6, 0/124=1, 1/2=2, 2/0=3, 2/1=1, 2/2=5, 2/124=2, 9/12=1, 124/0=3, 124/124=2, 127/0=6, 127/1=1, 127/2=3, 127/127=3.

A status pair or raw DIFF is not an independent bug.

Fixed Engine Families

  • Dynamic marker/array-field split: bfadaeb8, 63c2d7ea.
  • Embedded assignment process substitution: 5f77bf2c, f173f927; focused family 56/56.
  • Nameref array element and positional slice offset zero: f5e63f99.
  • printf integer overflow saturation/warning/status: 9d1a8033; printf tests 30/30.
  • Extglob parse-time rc=2: a24c0379; parser tests 15/15.
  • Windows logical-root/PWD: 13864d8a.
  • Coproc EOF, writer close, endpoint retirement, persistent stderr, and wait status: focused Bash/Rubash probes are parity; see target/issue-suites/results/coproc-eof-current/.

Host/Fixture Classification

  • iquote, more-exp, nquote1..4: repeated missing recho helper/output fixture contamination.
  • exportfunc, new-exp: nested THIS_SH, ./bash, -c, and env -i path assumptions.
  • glob: mixed recho, permissions, locale, and Windows path behavior.
  • Old getopts 0/124: current bounded run-getopts is 1/1 with byte-identical output and existing focused coverage.
  • Coproc fd numbers, /etc/passwd, xcase, /dev/tty, /usr, /tmp, and /proc are host/product-contract or fixture evidence unless a direct semantic mismatch reproduces.

Remaining Candidates

Needs direct bounded GNU Bash/Rubash probes before Rust changes:

  • arith 1/2, array 1/2.
  • braces, comsub-posix, cond, mapfile, posixexp2, quotearray with Bash rc=0 and Rubash rc=2.
  • builtins, comsub2, histexp with Bash rc=2 and Rubash rc=0.
  • complete 2/1, rsh 0/1, and posix2 9/12.
  • procsub/read/redir 124/0 and trap/printf 2/124 need fixture-specific EOF/timeout reproduction; printf focused overflow behavior already passes.

Do not change expected output globally or treat a status pair alone as proof.

Evidence

  • target/issue-suites/results/bash-ledger-current-a24c0379/
  • target/issue-suites/results/bash-ledger-current-a24c0379/output-only-attribution.tsv
  • target/issue-suites/results/coproc-eof-current/
  • target/issue-suites/results/coproc-persistent-stderr-boundary/
  • docs/residual-differential-triage-20260821.md

Activity

  1. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Attribution issue published: #62. The current ledger artifact is complete at target/issue-suites/results/bash-ledger-current-a24c0379/: 83 rows, 13 PASS, 70 raw DIFF. I also fixed the runner summary bug in 8c6656e: it previously skipped the real test named , reporting TOTAL=82; summaries now skip only the header row. No Rust engine changes were made from status pairs alone.

  2. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Cross-shell refresh completed: BusyBox ash, Oil, and mksh are unavailable in this environment. Artifacts are under target/issue-suites/results/cross-shell-current-20260822/ and classify all three as runner/provider blockers, not Rubash semantic DIFFs. The durable ledger now records this in docs/compatibility-attribution-20260822.md.

  3. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    ksh93 representative evidence is now archived at target/issue-suites/results/ksh-current-20260822/. No ksh93, ksh, or mksh executable was available; bounded probe returned provider-blocked 127 without executing the script. This is not a ksh or Rubash semantic DIFF.

  4. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    New focused attribution update: a80e07d fixes the arithmetic conditional diagnostic token from to Bash-compatible ; focused regression passes. The procsub/read/redir/trap candidate probes are parity, and the raw printf width probe times out under the same 8s wrapper for both engines, so those ledger rows are fixture/host timeout evidence rather than current engine defects. Restricted-mode is a separate unimplemented engine feature candidate, but the official rsh row is contaminated by the canned upstream bridge/stream policy; no speculative exec patch was made.

  5. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Correction to the prior update: a80e07d fixes the arithmetic conditional diagnostic token from =9 to Bash-compatible +=2; the focused regression passes. The procsub/read/redir/trap candidate probes are parity. The raw printf width probe times out under the same 8s wrapper for both engines, so those ledger rows are fixture/host timeout evidence rather than current engine defects. Restricted-mode set -r remains a separate unimplemented engine feature candidate, but the official rsh row is contaminated by the canned upstream bridge and stream policy; no speculative exec patch was made. Evidence: target/issue-suites/results/arith-array-probes-20220822/, target/issue-suites/results/status-candidates-20220822/, and target/issue-suites/results/rsh-probe-20220822/.

  6. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Compatibility attribution refresh after focused probes:

    • a80e07d fixes arithmetic conditional error-token rendering (+=2).
    • 4a9e8d4 fixes enable -d usage/status to Bash-compatible rc=2.
    • 1e1b367 rejects whitespace-braced ${ printf ...; } as bad substitution (rc=1).
    • procsub/read/redir/trap bounded probes are exact parity; raw printf width probe times out under the same wrapper for both engines.
    • rsh official row is canned-bridge/stream-policy evidence. Independent direct probes confirm set -r is an unimplemented Rubash engine feature: invalid option, no restricted flag, and no absolute-command/cd enforcement.
    • Remaining artifact-backed candidates are array subscript propagation, comsub-posix heredoc output, posixexp2 parameter expansion, and quotearray associative expansion. Braces is invalid; cond/mapfile are parity; histexp is interactive/host-sensitive.

    Durable ledger: docs/compatibility-attribution-20260822.md

  7. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Round update: 8001a04 fixes posixexp2. Root cause was src/lexer/skip.rs closing a braced parameter expansion while inside a single-quoted word; the focused regression now matches Bash stdout 1 }z and rc=0. comsub-posix and quotearray remain artifact-backed unresolved candidates; attempted repair-agent launches failed before producing changes. Array patch remains uncommitted because its focused regression still returns status 1.

  8. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Round update: 6512057 fixes array subscript diagnostics and nonfatal invalid parameter expansion. The original array probe now matches Bash: stdout includes cneg=<> and status is 0; b[], b[*], c[-2], and c diagnostics are Bash-compatible. Focused regression passes. posixexp2 remains fixed by 8001a04. Remaining artifact-backed engine candidates are comsub-posix heredoc delivery and quotearray associative arithmetic subscript evaluation; restricted set -r remains an unimplemented feature gap, while official rsh is bridge-policy contaminated.

  9. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Round update: e7cb7c1 fixes quotearray. The root cause was escaped command substitution being executed during assignment expansion before associative arithmetic subscript evaluation. Rubash now preserves the escaped $(...) in the key and avoids generic parameter pre-expansion for marked associative arrays. The original probe now returns rc=0, declares the full key with value 1, and emits no uname/error stderr. Focused regression passes with and without default features. Remaining unresolved engine candidate is comsub-posix heredoc delivery; restricted set -r remains a feature gap.

  10. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 候选清单新鲜复测(ca543d41,WSL GNU 5.2.21 vs rubash,脚本文件式,25s/项)

    绕过 ledger harness(winuxsh 下后台 wrapper + env 前缀不可靠;已给 scripts/run-bash-actual-ledger.sh 打了 cp -R dir/. 静默失败的健壮性补丁 222a7e3),直接对 19 个候选 .tests 做双侧探针(辅助工具 recho/zecho/printenv 已在 WSL 编入 target/issue-suites/results/bash-tests-rw/):

    test          status   gnu_rc  rubash_rc  note
    comsub2       PASS     2       2          (此前 2/0,已修复)
    array         DIFF     1       1          out-diff
    braces        DIFF     0       0          out-diff
    posixexp2     DIFF     0       0          out-diff
    quotearray    DIFF     0       0          out-diff
    read          DIFF     0       0          out-diff
    redir         DIFF     0       0          out-diff
    complete      DIFF     2       2          out-diff
    rsh           DIFF     0       1
    posix2        DIFF     9       4
    cond          DIFF     2       0
    builtins      DIFF     2       0
    histexp       DIFF     2       0
    procsub       DIFF     2       0
    comsub-posix  DIFF     0       2
    mapfile       DIFF     127     0          GNU 侧 fixture 缺失待甄别
    arith         DIFF     1       124        ⚠ rubash 挂起(P1)
    trap          DIFF     2       124        ⚠ rubash 挂起(P1)
    printf        —        无 printf.tests 文件
    

    原始产物:target/issue-suites/results/ledger62-fresh.tsv + ledger62-side/<name>/{gnu,rb}.{out,err,rc}。

    新发现(P1):arith.tests 与 trap.tests 在 rubash 下非确定性挂起/超时(同用例在 40s 窗口有时 RC=0 只输出 1 行,有时 25s 超时)——这正是此前 ledger 卡死在 arith 的根因,值得单独开 issue 定位(疑似 ${THIS_SH} 递归或 trap 等待路径)。

    其余 DIFF 行需要逐行甄别 stdout 差异是语义还是夹具(mapfile 的 GNU 127 已确认是夹具侧问题)。

  11. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 候选逐项甄别(基于 ledger62-side 产物 diff,GNU 5.2.21 实测 vs rubash b4c8cca)

    语义类(真 bug,按影响排序):

    1. read(rc 同 0,stdout 差异小):read 的 IFS 字段切分——行 3 -a-b - vs -a-b-,尾部 IFS 空白折叠规则;
    2. mapfile:仅行 155 差一个行尾空格(1 2 3 4 5 \ vs 1 2 3 4 5)——数组转词时的 IFS 尾部处理,离全绿一步之遥;
    3. cond:[[ … ]] 某条件返回 rc 0 vs GNU 1(行 17);
    4. posixexp2:8 ""z} vs 8 \"z}——展开词内引号保留(与 [Compat][BusyBox][ash-quoting] Bash-compatible differences #52 引号架构同根);
    5. braces:{0..10} 序列展开在该用例失效(输出字面片段);
    6. redir:exec fd 复制/持久重定向序列(gnu to a/to b vs rb Point 3/Point 4);
    7. array:数组索引/赋值语义(gnu 119 行 vs rubash 690 行,大量多余输出);
    8. quotearray:declare -A 打印时 key 内 $( ) 引号转义丢失;
    9. builtins:umask -S 输出形式(GNU 打印命令回显 vs rubash 直接打印符号掩码)——需对照测试源确认是 xtrace 还是 type;
    10. procsub:<(...) 已支持但输出顺序/fd 时序有差(行 5 起错位);
    11. complete:complete 注册项打印顺序/选项集不同;
    12. posix2:一致性清单两侧各失败不同子集($@、sh -c 引用)。

    未实现特性(实现范围评估类):

    • histexp:! 历史展开在非交互下未按 GNU 门控(rubash 行 1 即输出错误内容)——需要 history 状态机;
    • comsub-posix:POSIX ${ …; } 形式部分缺失。

    夹具/宿主噪声(NOT-A-BUG):

    • rsh:rubash 侧输出的是 WinuxCmd 帮助文本——测试的 exec 命中 Windows PATH 上的 winuxcmd shim,纯 PATH 污染;
    • mapfile GNU 侧 rc=127(此前列表)为夹具缺 helper,已澄清。

    已 PASS(近期修复成果):comsub2(此前 2/0 → 现在 rc/输出全对齐)。

    原始 diff 依据:target/issue-suites/results/ledger62-side/<name>/{gnu,rb}.out;fresh 状态表 ledger62-fresh.tsv。建议:把 read/mapfile(IFS 尾部规则)作为下一个最小修复点,cond/braces/redir 次之,histexp/comsub-posix/complete 作为特性跟踪。

  12. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    read 已修复(c9466df3)+ mapfile 定位

    read.tests:GNU 依据 read.def 的双分支绑定(branch (a) 词尾即行尾→bind_read_variable 保留转义空格;branch (b) 整行→strip_trailing_ifs_whitespace 逃逸盲截断)。rubash 三处修复:

    1. split_read_field_ranges 消费 \X 转义对为字段数据(转义 IFS 字符不再是分隔符);
    2. field_value 先尾随修剪再解转义(多名末变量逃逸感知;单名整行走逃逸盲,与 GNU 分支对应);
    3. 多余名量走 apply_shell_assignment 清空(此前保留旧值),同时获得 nameref/readonly 语义。

    探针 5 例全对齐;read.tests 首个分歧从行 3 推进到行 34(剩余为 read -a 数组切分切片,下一轮)。lib 325/10 零回归。

    mapfile 行 155 行尾空格:初步定位为 read -a 数组切分的同一 IFS 尾部规则(split_read_array_words 系列未做转义感知/尾随处理),将随 read -a 切片一起修复。

  13. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 复核进展:mapfile 差异全部为 CRLF 伪影 + 两项真修复(c9466df3 / 881b237)

    关键基础设施发现:core.autocrlf=true 把 vendored bash 测试树检出为 CRLF。GNU 把 CR 当数据——mapfile1.sub 的 echo ${array[@]} 行尾 CR 生成幻影尾随空格词;mapfile2.sub 数组名变 A<CR> 触发 sh_invalidid 整段静默跳过。bash-tests-rw 运行目录已全量 LF 归一化(642 文件,验证零嵌入 CR,无数据丢失),mapfile.tests 从干净目录重跑 GNU/rubash 完全一致(170=170,diff=0)——此前 mapfile 候选全部关闭。

    clean 重跑后的真实候选量化(ledger62-rerun/,THIS_SH 已导出):

    • array 682 行(最大,GNU rc=1 超时截断)
    • builtins 280 / quotearray 205 / complete 115 / cond 49 / braces 18 / posix2 8 / posixexp2 14 / procsub 12

    本轮修复:

    1. c9466df — read 字段切分三重修复(转义对消费、先修剪后解转义、多名清空走 apply_shell_assignment),read.tests 首分歧从行 3 → 行 34
    2. 881b237 — ① case 解析:in 后首个裸 esac 为保留字拒绝(GNU 接受矩阵 5/6 对齐;剩余 ;; esac) 嵌套深度规则记为待办)② 赋值值单引号内双引号为数据(hoist/restore 包装,越过嵌入参数重扫描)③ quoted-RHS 逃逸引号标记泄漏修复

    procsub 12 行差异根因:GNU procsub 子进程退出后 /dev/fd 路径消失(-e false),rubash 持久临时文件(-e true)——需进程存活期语义,深坑记录。
    posix2 剩余:-x 负测试(Windows 可执行位模拟)+ variable quoting 1/3(set 输出引号格式,#52 族)。

  14. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 续:管道 grep 快速路径修复 + set 输出对齐(e30f3e34)——多套件 diff 大幅下降

    新根因 1(乘数级):管道内建 grep 快速路径把 words[1] 当模式——set | grep -c VAR 实际 grep 字面 "-c"(匹配 SHELLOPTS 的 "interactive-comments"!)并输出匹配行而非计数。修复:[-cinvq] 旗标解析(含捆绑)、-- 终止符、首个非旗标参数为模式、文件操作数与未知旗标回退真 grep(与 sed/tr 快速路径同纪律)、GNU 退出码语义。

    新根因 2:set 输出引号规则三重对齐 variables.c print_var_value:非打印字符用 dollar-quote;元字符用 sh_single_quote 含单值特例(单引号值输出反斜杠引号,posix2 variable quoting 1/3 关闭);metas 表含位置性 tilde/hash 规则(sh_contains_shell_metas 逐字移植)。

    新根因 3:_RUBASH* 簿记变量泄漏进 set 列表(GNU print_var_list 的 invisible_p 语义)——已跳过。

    修复后量化(ledger62-rerun2.log,同 LF 干净目录):

    suite 修复前 修复后
    cond 49 18
    braces 18 4
    builtins 280 213
    quotearray 205 149
    array 682 627
    complete 115 111
    procsub 12 11
    posix2 8 9*
    mapfile / comsub2 0 0

    *posix2 现仅剩:① -x 负测试(Windows exec 位模拟缺失)② case-esac 拒绝后的诊断措辞(GNU 视 in esac 为空模式表报右括号,rubash 报 esac)——variable quoting 1/3 已关闭。lib 325/10 零回归。

  15. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 续:posix2 收口——空 case 表 / eval 诊断对齐(6410a502),chmod 模拟层(51e5f952)

    重要语义修正:GNU 实测 case x in esac 是合法空子句 case(直落执行后继命令)——此前 881b237 的"裸 esac 拒绝"是过修。现按 parse.y 实现:in 后裸 esac = 零子句闭合;do/then 在模式位是普通模式词。case x in esac) 的错误在 ) 处(空表闭合后括号意外)。

    chmod 模拟模式层(51e5f952):chmod 内建原为空桩。现支持八进制与 [ugoa]*[+-=][rwxX]+ 符号模式(含 X 规则),写入 __RUBASH_FILE_MODES;test -r/-w/-x 优先读模拟位,未记录文件回退现状。posix2 "negative test -x" 关闭(chmod/test 矩阵 6/6 对齐;test -w 残差为 WSL root 语义,posix2 不涉及)。

    eval 诊断对齐(6410a502):eval 内错误的诊断前缀带 "eval:" 段 + 调用者行号(token 位置偏移);eval 字符串内语法错误 → 返回状态 2 不中止脚本(eval "exit 5" 仍致命退出 5);eval 重解析中命令位的 stray )/;; = YYABORT 式错误 + 当行回显(parse_with_options 仅在 eval 路径启用——顶层多行 $(...) 折叠属 lexer/continuation.rs captain-exclusive 范围)。

    posix2 现状:唯一残差 = 错误回显行的空格重建(token 拼接 esac ) vs GNU 原文 esac))——1 行措辞级差异,行为层全部对齐。

    全套件回归(ledger62-rerun3):cond 18 / braces 4 / builtins 213 / quotearray 149 / array 627 / complete 113 / procsub 11 / posixexp2 14 / mapfile 0 / comsub2 0 / comsub-posix 29 / trap 58 / read 46 / redir 74——较 e30f3e3 无回归(complete +2 待查)。lib 325/10 零回归。

  16. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 里程碑:posix2.tests 完全关闭(P2 diff=0)——62718ab1

    最后残差(错误回显的空格重建)已修:ParseLoopOptions 增加 source_text / source_line_offset,eval 重解析传入原始文本,stray-close 守卫按行切片逐字回显(token 拼接无法恢复原空距)。回退路径保留 token 拼接(无 source_text 的调用方)。

    posix2.tests 现在 GNU(5.2.21)/rubash 逐字节一致——继 mapfile、comsub2 之后第三个完全关闭的上游套件。

    累计本轨(自 e30f3e3 起):posix2 9→11(措辞)→0;cond 49→18;braces 18→4;builtins 280→213;quotearray 205→149;array 682→627;complete 115→113;procsub 12→11;mapfile/comsub2 =0。lib 327 通过(+2 新解析器单测)/ 10 已知基线失败。

    附注:本会话子代理通道对实际任务不可用(后台前台均夭折,仅无工具探针存活),因此并行分诊转回单兵模式;已建的两个 agent worktree 已清理。

    下一步:array 627 / builtins 213 / quotearray 149 大切片人工分诊(GNU 源引证 + Rust 归属 + 修复策略排名)。

  17. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 第七轮:posix2 完全关闭 + builtins 213→190(4 个提交)

    posix2.tests 关闭(62718ab1)

    P2 diff=0。最后残差:解析错误回显按 token 重建插入多余空格(esac ) vs GNU 逐字 esac))。ParseLoopOptions 增加 source_text / source_line_offset,eval 重解析传入原始文本按行逐字回显,无 source_text 时回退 token 拼接。posix2 成为继 mapfile、comsub2 后第三个逐字节对齐的上游套件。

    builtins 小语义三连(c7e5e6c4)213→208

    • umask -p -S(无模式):GNU 打印可复用命令 umask -S u=...,此前 -p 被忽略
    • hash 空表消息走 stdout 且状态 0(原 stderr)
    • enable -n(无参数)列出已禁用内建(原被条件短路跳过)

    source 位置参数泄漏(9f32425f)208→206

    GNU source.def uw_maybe_pop_dollar_vars:有参 source 后,仅当脚本未用 set 改 dollar vars(且不在函数内)才恢复;改过则保留。rubash 原无条件恢复。Executor 增加 dollar_vars_changed_by_set(ARGS_SETBLTIN 类似物)。builtins.tests source 段尾部现两 shell 一致(m n o p / a b c / m n o p)。

    umask 符号模式重写(7e76a397)206→190

    builtins8.sub 21 例分诊:GNU 每子句恰一个操作符 + perms ∈ {r,w,x}(无 who 复制、无 X、第二操作符按 perm 字符报错)。rubash 原接受多 op 与 who 复制导致静默错掩码。重写后 builtins8.sub stdout 与 GNU 逐字节一致。

    基础设施

    • 子代理通道对本会话实际任务不可用(后台/前台真任务均夭折,仅无工具探针存活)——并行分诊转单兵
    • 推送 TLS 中断经后台重试环恢复,4 提交全部上 origin/master

    累计:posix2=0(关闭);builtins 213→190;cond 18、braces 4、complete 113(+2 待查)、array 627、quotearray 149;lib 326/10(净 -1 为单测替换,零回归)。

    下一步:builtins 残余(help 列表 ~26 行、exec -a $0、source 失败状态传播、glob/文件名桶、export 重复行);array/quotearray 大切片分诊;complete +2 回归根因。

  18. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    #62 第八轮:GNU 上游覆盖 19→83 套件(新接入 64 个,其中 20 个直接 diff=0)

    子代理通道本会话仍不可用(3 个后台任务均在开工前夭折,零产物),转单兵完成。方法论沿用已验证的 ledger62-rerun2.sh 模式:runner 整体在 WSL 内侧执行(GNU bash、rubash.exe、diff、grep 全 Linux 原生),规避 Git Bash 侧 winuxsh grep 的 < 参数吞噬问题与 MSYS 路径改写;测试文件 tr -d CR 落入 bash-tests-rw-new/(LF 纪律)。

    已完全对齐(diff=0,20 个新套件)

    alias、appendop、attr、case、comsub-eof、dbg-support2、dstack2、extglob2、extglob3、glob-bracket、herestr、ifs、invert、parser、posixpipe、set-e、set-x、strip、tilde、vredir

    新量化台账(64 个,按差异行数)

    套件 行数 套件 行数
    dbg-support 635 precedence 48
    new-exp 455 quote 44
    exp 141 errors 36
    nquote1 133 posixexp 32
    more-exp 112 extglob 31
    shopt 107 comsub 26
    globstar 101 jobs 22
    glob 97 test 19
    nquote5 88 nquote4/casemod 18
    nquote2 76 posixpat 16
    rhs-exp 68 func 13
    nquote/cprint 64 invocation/heredoc/coproc 11
    assoc 62 varenv 10
    iquote 61 intl 8 / type 7 / nameref 7
    nquote3 60 arith-for 54 / history 53 / dstack 50
    exportfunc 3 / tilde2 2 / lastpipe 2 / getopts 2 / ifs-posix 1 / dynvar 1

    本轮新修复(提交)

    • 81ce09f help 栅格:builtins 190→22
    • 355f8a6 . /dev/stdin:builtins 22→19
    • array 初步分诊:declared-size 泄漏(declare -a b[256] vs b)、readonly 数组 unset 未拒绝、下标算术求值、DIRSTACK 语义

    当前总盘子:83/68+ 上游 .tests 全量接入(部分套件含 -r 变体);累计完全对齐 23 个套件;待收敛量 ≈ 190(老台账)+ 2,700(新台账)行,其中 dbg-support/new-exp(调试支持与扩展展开族)为新增最大块。

    下一步:array 桶修复 → dbg-support/new-exp 分诊 → nquote 系列引用语义 → shopt/globstar。

  19. caomengxuan666 commented on Sep 8, 2026

    @caomengxuan666
    MemberAuthor

    #62 第九轮:真基线重建 + fc 族关闭

    基线修正:GNU 侧 THIS_SH=/bin/bash + 固定二进制路径。旧台账数字作废(截断+路径污染)。83 套件,21 真零差。

    真缺口 Top10:dbg-support 635、array 456、assoc 360、nameref 303、new-exp 241、more-exp 232、posixexp 211、histexp 199、rsh 193、comsub2 190。

    提交:2d6e32e9 fc 自身条目排除(fc 族 10 测试全绿);2af92b9d lexer 复合值内元字符字面量化(GNU read_token_word)。

    数组族根因五桶:复合引号分组(~250,深)、e[10] 尺寸提示赋值语义、&-in-compound 语法错继续语义、DIRSTACK 懒同步、readonly declared-unset 列表。

    子代理通道 8/8 夭折,全部单兵完成。详见 docs/COMPATIBILITY-STATUS.md 第九轮。

  20. added
    gnu-baseline
    on Sep 11, 2026
  21. caomengxuan666 commented on Sep 21, 2026

    @caomengxuan666
    MemberAuthor

    第十轮进展同步(2026-09-21,master 回归修复后全量 true-baseline 重跑):账本从本 issue 创建时的 21 真零差推进到 57 零差 / 26 DIFF / 总 733 行(见 COMPATIBILITY-STATUS.md 第二十八节及后续修正)。逐候选核对本 issue 遗留项:\n- restricted set -r:已实现(1300aeca,rsh 套件 0 差);\n- array 下标传播:已修复(65120574,array 0 差);posixexp2(8001a04a)、quotearray(e7cb7c11)均关闭;\n- comsub-posix heredoc 投递:仍开放——d0433449 的 comsub heredoc boundary 修复后收敛(raw diff 21→约 14 行口径)但未归零;\n- 另发现两处管线侧确定性分歧待修:precedence(40 行,管道输出缺失)、posixpipe(2 行,丢行)——正在处理。\n本 issue 保持 open 作为归因账本,下轮同步在下次全量基线后。

  22. caomengxuan666 commented on Sep 24, 2026

    @caomengxuan666
    MemberAuthor

    Closing this ledger — the backlog it tracked has been cleared.

    Current state at rubash master (run-83 harness, WSL GNU Bash 5.3.0(1) oracle):

    • 82/83 suites byte-identical. The single remaining diff (nameref RO_PID coproc reaping timing) is a race that the GNU oracle itself hits intermittently — verified with isolated GNU probes, so it was archived rather than patched (5780be63, re-archived in 43214f75).
    • All fixed engine families recorded above have shipped: dynamic marker/array-field split, embedded assignment process substitution, nameref array/positional offsets, printf overflow saturation, extglob parse-time rc, Windows logical-root/PWD, and the coproc EOF family.
    • The "Remaining Candidates" list is drained: the histexp/alias/redirection/vredir slices are all zero-diff, and the glob RHS quoting cases now match GNU byte-for-byte (43214f75).

    Fresh semantic findings continue to be tracked in the gnu-compat GAPS.md ledger and filed as new issues as they come in. Thanks to everyone who ran the suites against real workloads.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    gnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions