Repository navigation
#1488 wave4a - #1576
Merged
Merged
#1488 wave4a#1576
Conversation
…EEN, #1488) head/tail/cut/tr/od/sum/mktemp/nice: 230 new gate cases, all GREEN against WSL coreutils 9.4. Full 55-command run: GNU-gated 1384 PASS / 0 FAIL, win-gated 145 PASS / 0 FAIL. The wave1 table reflects the committed generator (chmod/chown tables regenerated to their current case lists; help/version rows strict).
This was referenced Nov 13, 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.
rust2 wave4a: head / tail / cut / tr / od / sum / mktemp / nice (#1488 命令库化)
8 个命令的 rust2 库函数 + 差分门。形状契约与 wave1-3 一致(注入式 IO、显式 env/cwd、返回状态码、零依赖 std-only)。
差分账本(全量 55 命令 run,2026-11-12)
gate/gen-cases.py(每命令 ≥20,生成式),三方门 Rust / GNU / 本树 Debug C++ 对照。本批锁定的 GNU 语义(全部 WSL 9.4 实测)
+K/-K不对称(tail 的-K≡K,-n -0空、-n +0全)、b/kB/K 后缀、多文件头格式1 3两个 spec)、-d ''=NUL、输出记录无条件带终止符[c*n]八进制计数、-c翻译取 SET2 末字符)、C-locale 字节表4.8e-322)、-tx1zASCII 列定位 16*(w+1)+2、-t o/x缺省 4 字节文档化子集(诚实边界)
-f/-F/--retry不跟随(输出后 rc 1);od--traditional/-S/fL拒绝;nice 子进程继承进程 stdio(与 timeout.rs 同形状);mktemp 创建名/nice niceness 平台绑定只比 rc。每命令 Rust 单测(全仓 414+21 green)、cargo fmt 干净。10 commits(8 命令各一 + TSV 对齐 + 报告)。