Repository navigation
test(ecosuite): bash-completion 2.14.0 corpus asset + _comp_expand_glob chain (Refs #2900) - #3126
Merged
Merged
Conversation
…_expand_glob eval (Refs #2900) The distro bash-completion file itself becomes an eco-corpus asset (tests/fixtures/ecosuite/bash-completion/, sha256 recorded in MANIFEST.md), and tests/issue2900_bash_completion_chain.rs drives it end to end: source -> post-source state assertions -> the real _comp_expand_glob called with the caller shape (executes the asset eval at line 356) -> the caller registration loop. Plus the eval x extglob cross-grid (five operators x gate on/off) as corpus cells. Gate on the #2876 fix: chain + gate-on cells fail on pre-#2876 master, controls stay green.
This was referenced Nov 8, 2026
Member
Author
|
【WIN-AGENT-AUDIT】 PR #3126 第1轮 — 建议:PASS 机制核查:
腿(逐项):
F 点:无。 续作记录:未动代码。 未跑/VOID 的腿:
|
caomengxuan666
marked this pull request as ready for review
November 15, 2026 02:07
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UNVERIFIED-BY-CAPTAIN — 180 单令第一波 T1 生态链车道(#2900)交付,待队长复核。
做什么
Refs #2900
把真 bash-completion 2.14.0 发行文件钉为生态语料资产,并加一条端到端链路测试,让 #2876 的 eval×extglob 缺陷类有语料门:
tests/fixtures/ecosuite/bash-completion/bash_completion-2.14.0——发行文件本体(3,349 行 / 122,328 字节),非最小化 fixture;sha256859ddde49ce594914f4c4ea108aed73d834c51f12839f36135e319b5f86d0abc,与 scop/bash-completion tag2.14.0逐字节一致(MANIFEST 记出处与关键行号)。tests/issue2900_bash_completion_chain.rs,逐步断言、状态逐级喂):source 资产(source 期调用方对宿主真实 init.d 自执行,与用户启动症状同一路径)→ 断言 source 后状态(_comp_expand_glob已定义、调用方自毁、extglob+progcomp 开、_comp_backup_glob为钉住字面)→ 以调用方原形参数调真_comp_expand_glob(执行资产第 356 行 eval)对 fixture init 目录断言 glob 结果 → 结果喂调用方注册环,断言complete -F注册面。!*?+@)× 门开/关,共 10 格,GNU bash 5.3.20 脚本文件形态实测期望。本 PR 删除了什么
无删除:纯新增测试资产与链钉(资产 3,349 行 + 测试 249 行 + MANIFEST 记账 25 行)。不改任何产品代码。
mvdan 差分与 #3033 的分界(本链核对结论)
6eb861b8;26 个 exec-rc 格 + M8 t0447 纯 stdout 格),现行 master 上重算为 23——M4/M5/M6 三格已随 [bug] ${foo/[/]-} misrouted to arithmetic parsing #3022/[bug] array subscript $"..." not evaluated as arithmetic #3023/[bug] unset ${foo:t5:h2:l} errors arithmetically instead of short-circuiting to empty #3024 合入修复,M8 t0447 的 stdout 面亦已消失([bug] typeset listing shows BASH_ARGV0 and renders GROUPS=([0]="0") #3026 待队长复核关单;REPORT §2.5 已在头二进制上直跑确认两面与 GNU 一致);分解立案 m1–m9 → [bug] bad substitution exits 0, GNU exits 1 (${} and 16 more shapes) #3019–[bug] ${var=word} assignment leaks into preceding ${var:+word} in the same word #3027、w1–w5 → [bug] error line number after backslash-continuation is off by one #3028–[bug] coproc invalid-identifier message shows unexpanded name, GNU shows (null) #3032、CI 接线 → [enhancement] wire the mvdan/sh 559-snippet execution differential into CI (or record as periodic eco chain) #3033,无遗漏格(对账见车道 REPORT §3)。-nrc 16/16 与 GNU 一致(t0026=0、t0068=2、t0142=2、t0143=2、t0144=2、t0164=0、t0169=2、t0173=2、t0286=0、t0382=2、t0383=0、t0411=0、t0415=2、t0459=1、t0525=2、t0526=2;见 REPORT §2.4);16 片段在 tests/ 下无对应钉茎,只以 fixture + MANIFEST 表格钉住。