Repository navigation
docs: #878 CR nits — command.def/asciicode coordinate errata + stale regression.rs env comment - #888
arookieofc wants to merge 1 commit into
Conversation
…regression.rs env comment Coordinate errata (verified against vendored third_party/bash): - command.def: the 'if (list == 0) return' early return sits at 96-99, not 95-96 (type_builtin.rs, command_substitution_values.rs, tests/regression.rs); the -p restricted refusal block is 98-104, not 97-103 (issue804 test header). - printf.def asciicode(): the body is 1520-1543, not 1519-1544 (printf_tests.rs). Stale comment (rubash#864 nit): tests/regression.rs run_rubash_in's parenthetical still claimed suite snapshots 'deliberately keep the ambient env'. The snapshot path switched to the same airtight channel (env_clear + machine whitelist + pinned THIS_SH/TMPDIR) when ambient leakage was found to make recorded bytes machine-dependent; the parenthetical now says so and points at the sibling comment. Note on item 7 (the quoted-default split residue): probed — GNU prints 'a b<W>' as one field, rubash splits it into 'a' and 'b<W>'. That is a real word-splitting semantic divergence (same function neighborhood as the byte/char fix in rubash#876), not a comment nit; tracked for a dedicated fix rather than a partial change here. Comment-only; zero behavior change; build + fmt + tests/regression 78/78 green.
|
欢迎!这是你的第一个 PR 🎉 请确认已跑过本地测试套件;CI 通过后维护者会 review。 |
|
独立评审结论:REQUEST-CHANGES(自建 worktree @ 3e291c8 对基线 2b98675 评审;vendored 对质 = 本 PR 的全部交付物就是坐标正确性,但两处核心勘误一处新值仍错、一处只做了一半: 1. command.def 95-96 → 96-99:新坐标仍错,vendored 实为 96-97
早退语句是 96-97(#878 票面第 1 项钉的也是 96-97);98 是空行、99 是 (考古:旧值 95-96 恰是 bash-5.2 修订 顺带: 2. asciicode → 1520-1543:测试头改对了,票面点名的「契约注释」漏了
已核实为正确的部分
#878 未覆盖项清单(留给后续,不构成本 PR 的 BLOCKER)
修复清单(改完即可过)
|
|
独立复审结论:REQUEST-CHANGES(维持)——修复轮尚未推送,待办清零判定 0/3 fetch 复核:head 仍为
vendored 重对质(third_party/bash @ pin
越界审计复核:diff 仍恰为所列 5 文件、全注释、零行为、submodule 指针未动——原评审该结论维持。 merge-preview(对最新 master 待办 = 原评审修复清单 3 项 + 描述同步,一项未动。补 push 后可直接复审批准,无需重复本页审计。 |
|
独立复审结论:REQUEST-CHANGES(维持)——head 未动,修复清单 0/3 第三方复核(自建 worktree @
vendored 实读与原评审一致: 前轮已核实为正确的部分本次维持成立: merge-preview:对当前 master 待办 = 原评审修复清单 3 项 + 描述同步。补 push 后按前轮结论可直接复审批准,无需重复本页审计。 |
|
评审修复清单已在新 PR #933 落地(head 基于本 PR 的
全部对质 vendored
|
#888 review) (#933) * docs: #878 CR nits — command.def/asciicode coordinate errata + stale regression.rs env comment Coordinate errata (verified against vendored third_party/bash): - command.def: the 'if (list == 0) return' early return sits at 96-99, not 95-96 (type_builtin.rs, command_substitution_values.rs, tests/regression.rs); the -p restricted refusal block is 98-104, not 97-103 (issue804 test header). - printf.def asciicode(): the body is 1520-1543, not 1519-1544 (printf_tests.rs). Stale comment (rubash#864 nit): tests/regression.rs run_rubash_in's parenthetical still claimed suite snapshots 'deliberately keep the ambient env'. The snapshot path switched to the same airtight channel (env_clear + machine whitelist + pinned THIS_SH/TMPDIR) when ambient leakage was found to make recorded bytes machine-dependent; the parenthetical now says so and points at the sibling comment. Note on item 7 (the quoted-default split residue): probed — GNU prints 'a b<W>' as one field, rubash splits it into 'a' and 'b<W>'. That is a real word-splitting semantic divergence (same function neighborhood as the byte/char fix in rubash#876), not a comment nit; tracked for a dedicated fix rather than a partial change here. Comment-only; zero behavior change; build + fmt + tests/regression 78/78 green. * docs: #878 CR rework — correct command.def/printf.def coordinates per #888 review Implements the review findings on #888 (comment 6289975215), verified byte-for-byte against vendored third_party/bash @ b460816 (bash-5.3 patch 15): - command.def: the `if (list == 0)` no-operand early return is 96-97 (96 = if, 97 = return; 98 is blank, 99 is `#if RESTRICTED_SHELL`), not 96-99 — fixed in type_builtin.rs, command_substitution_values.rs, tests/regression.rs. - command.def: the -p restricted refusal is the use_standard_path && restricted if-block at 100-104 (the enclosing #if/#endif guard spans 99-105), not 98-104 — issue804 test header now states the if-block/guard convention inline. - printf.def: asciicode() is 1520-1543 (function-name line to closing brace); the contract comment in printf/number.rs:133 still carried the old 1519-1544 — fixed to match printf_tests.rs:479. Residual-coordinate grep is clean: no 96-99/98-104/95-96/97-103/ 1519-1544 left in src/ or tests/. Comment-only; zero behavior change; rustfmt clean on all touched files; cargo check --tests warning set unchanged. Refs #878 Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: arookieofc <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
The coordinate errata this PR targets has landed via #933 (squash 7b976d0, includes the corrected 96-97 values at all three sites + the number.rs:133 cleanup + precise issue804 header). Thank you @a-rookie-of-C-language for the original work — closing as superseded; your branch remains for reference. |
Closes #878 (the pure-cleanup items). Verified against vendored third_party/bash.
Coordinate errata:
if (list == 0) returnis at 96-99, not 95-96 (type_builtin.rs,command_substitution_values.rs,tests/regression.rs); the-prestricted block is 98-104, not 97-103 (issue804 test header).asciicode()body is 1520-1543, not 1519-1544 (printf_tests.rs).Stale comment (#864 nit):
tests/regression.rsrun_rubash_in's parenthetical still claimed suite snapshots "deliberately keep the ambient env". The snapshot path switched to the airtight channel (env_clear + whitelist + pinned THIS_SH/TMPDIR) once ambient leakage was shown to make recorded bytes machine-dependent; the comment now reflects that.Item 7 disposition: the
"${x:-a b}"$wquoted-default split is a real semantic divergence — GNU printsa b<W>as a single field, rubash splits intoa/b<W>(probed vs WSL GNU 5.3.0). It sits in the same expansion neighborhood as rubash#876 and deserves a dedicated fix, not a partial change inside a comment-only PR. Flagging it for follow-up rather than shipping a half-fix here.Items 2-4 (the #870 fd-table nits) landed separately in #885 — they are not duplicated here.
Comment-only; zero behavior change; build + fmt +
tests/regression78/78 green.