Repository navigation
feat(i18n): batch-2 — shared getopt/usage_error surface (#1488) - #1683
Merged
Merged
Conversation
…ompatible catalog (#1488) - argopt: 6 shared keys; usage_error/try_help take ctx - extractor: format-equivalence + explicit migration annotations (4 keys) - 753/31 lib tests, 29/29 driver byte-equal, extract +5/-2
# Conflicts: # rust2/crates/winux-cmds/src/xargs.rs
caomengxuan666
marked this pull request as ready for review
November 14, 2026 11:25
caomengxuan666
added a commit
that referenced
this pull request
Nov 14, 2026
#1731) * feat(rust2): replay preserve-root closure + chmod/chgrp/chown tr! on batch-2 Re-applies the accepted preserve-root closure hunks from a58b901's unwind (PR #1698 split) onto current main, merged through batch-2's i18n surface (#1683): - argopt: flag_last; "--=v" reports ambiguous over the full table via ambiguous_option(); unrecognized long names keep the inline =value token via unrecognized_option() - chmod/chgrp/chown: dash-mode grammar, DerefMachine, dot-spec, preserve-root refusal, EOPNOTSUPP silent mapping, -v link skip - fsutil: shared lexical root recognition, native-root floor, display rules; orthogonal to main's literal_operand_path (#1283/#1332/#1333) - permission-family messages migrate to 34 stable tr! keys (command.{chmod,chgrp,chown}.error.*) with named placeholders; usage_error(ctx, io, prog, msg) signature throughout cargo test -p winux-cmds --lib: 889 passed / 0 failed. Targeted suites: preserve 12/12, floor 2/2, dash 14/14, dot 3/3, display 2/2, preserve_root 6/6; read-only sentinel assertions intact (refused passes leave attributes/mtime/size untouched). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * gate(a1): permission-family rows — chmod 60 / chgrp 29 / chown 47 gen-cases.py +57 lines across chmod_rows/chown_rows/chgrp_rows (WSL-probed values, unchanged from the #1698 review); regenerated TSVs: chmod 45->60, chgrp 24->29, chown 37->47. All other 85 tables re-emit byte-identical to main. Corpus is now 88 tables / 3635 rows on this base (main added cp/sed/find/xargs/grep/egrep/fgrep since the 82/2679 audit). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * docs(a1): wiring plan refresh, zh-CN catalog patch, split artifacts - DOCS/2.0-a1-wiring-plan.md re-based to 38b3751: 88 tables/3635 rows, registry 88 / wired 53 / rust-ready 35 (egrep+fgrep ride grep's wire), CMake double-set() residue flagged for the next wire to collapse, batch-2 merge notes, W5->W1->W2->W4->W3 order preserved - catalog/0001-zh-CN-chmod-chgrp-chown-tr.patch: 34 zh-CN keys + VERSION 0.6.35->0.6.36 against winuxcmd-i18n@cd9980d; targeted validate of the 34 en/zh pairs: valid. Not applied to the shared i18n checkout from this lane - rust2/split/: preserve-root-closure.patch regenerated as the replayed 5-file increment on 38b3751 (closure + tr!, shared hunks); a1-wiring-residual.patch kept verbatim (base 68d2917) as the record of what was stripped Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
caomengxuan666
added a commit
that referenced
this pull request
Nov 15, 2026
The port was authored before #1683 changed usage_error to (ctx, io, cmd, msg) for the shared getopt/usage_error I18N surface. interpret() already holds ctx — pass it through. Also carries the union-rebase resolutions (lib.rs keeps main's messages module + the ls module; gen-cases keeps both row sets).
caomengxuan666
added a commit
that referenced
this pull request
Nov 15, 2026
The port was authored before #1683 changed usage_error to (ctx, io, cmd, msg) for the shared getopt/usage_error I18N surface. interpret() already holds ctx — pass it through. Also carries the union-rebase resolutions (lib.rs keeps main's messages module + the ls module; gen-cases keeps both row sets).
caomengxuan666
added a commit
that referenced
this pull request
Nov 15, 2026
…ow gate (#1488) (#1762) * rust2(ls): GNU coreutils 9.4 ls library port — 5287-line port + 146-row gate + i18n patch set (#1488) Residual rescue: the ls-impl lane timed out mid-flight leaving the whole port uncommitted. This commit lands it as-found plus the missing catalog/ patch set the lane required: - ls.rs: GNU coreutils 9.4 ls.c library port (explicit-IO form, CMake-injected via the lib.rs registry entry) - glob.rs one-line fix: fnmatch '*' matches the empty name while still refusing a leading '.' - gen-cases.py ls_rows: 146-row gate table (append-only) - catalog/: en-US extract (3640 keys), zh-CN patch (21 keys), delta + validate artifacts, README-LS D3 verification: cargo build clean; cargo test ls 14/0. The mv twin report is devin-out-D3.md; gate numbers from the timed-out lane's ledger remain to be re-attested on CI. * fix(ls): usage_error takes the injected Ctx after the batch-2 seam The port was authored before #1683 changed usage_error to (ctx, io, cmd, msg) for the shared getopt/usage_error I18N surface. interpret() already holds ctx — pass it through. Also carries the union-rebase resolutions (lib.rs keeps main's messages module + the ls module; gen-cases keeps both row sets). * ci(gate): capture failed rows' rust stderr into the uploaded summary artifacts Exit-mode rows otherwise leave no trace of WHY an rc differed — the fs-dirs mk16-p-dir failure (rust rc 1 on the runner, rc 0 locally and on GNU) is un-diagnosable from CI alone. Failed rows' rust stderr now lands in rust-failed-stderr.txt next to the ledger in every shard artifact; the run-gate.sh local runs get the same file in $GATE_ARTIFACT_DIR.
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.
Route A: extractor format-equivalence + 4 annotated keys, Rust positional rendering, C++ untouched. 125 usage_error sites / 44 modules. 753/31 lib tests, 29/29 driver byte-equal. Refs #1636 #1488