Skip to content

fix(patch,touch,file,timeout): winx5-text batch (#1381/#1382/#1383/#1384) - #1399

Merged
caomengxuan666 merged 6 commits into
mainfrom
fix/winx5-text
Oct 27, 2026
Merged

caomengxuan666 merged 6 commits into
mainfrom
fix/winx5-text

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Text-command fixes from the winx5-text cluster, implemented strictly per the cluster's oracle-pinned NOTES (GNU patch 2.7.6 / coreutils 9.4 / file-5.45, all measured locally). One commit per issue, regression pins included in each:

  • e96869b patch: real -l/--ignore-whitespace matching; -c/-n/-e format forcing ("Only garbage" rc2); -V/--version-control full value range incl. the measured none/off->numbered quirk + VERSION_CONTROL fallback; --prefix/--basename-prefix backup naming; --quoting-style 10-value validation applied to patching/rejects lines; --get numeric validation; --read-only validation + fail pre-check
  • ecc49a5 touch: -d '' -> today 00:00 in the effective zone; @epoch fractions to 100ns ticks with whole-value sign; fortnight = 14 days; weekday items (bare/next/last, full + abbreviated names, incl. after a fixed date)
  • 6607af8 file: extension maps DELETED — classification is content-only (fs -> magic -> shebang -> JSON -> text analysis with file-5.45 wordings and CRLF suffixes); missing operand -> stdout cannot open line + exit 0; no operands -> Usage + rc1. Two existing tests that encoded the old bugs updated in place, new pins added
  • 5c69630 timeout: full Linux signal table (names, RTMIN+n/RTMAX-n arithmetic, IOT/POLL/LOST/UNUSED aliases, -l listing); numeric specs valid only for 0..31 and 34..64, others rc125 in the pinned shape

Fixes #1381
Fixes #1382
Fixes #1383
Fixes #1384

Verification status: NOT binary-verified. No probe has been run on this branch (the cluster's detached harness chain died at configure during the 2026-10-26 VM write-path fault). The binary verification debt sits with the WinuxCmd integration window: build harness/ against this tree and run harness/probes.sh (covers every NOTES behavior incl. guards). Do not mark ready / merge until the window's probes pass.

Paired i18n sync (zh-CN catalog keys for the new patch options + file description, VERSION bump) is in unixwin/winuxcmd-i18n, opened as a companion draft PR.

caomengxuan666 and others added 2 commits October 27, 2026 12:16
# Conflicts:
#	src/commands/patch.cpp
#	tests/unit/patch/patch_unit_test.cpp
- patch -l: without -l a whitespace-mismatched context still applies via
  fuzz (GNU drops the unmatched prefix context); assert the fuzz
  diagnostic instead of expecting a failure.
- timeout -v -s0: GNU resolves signal 0 to the EXIT pseudo-name
  (sig2str(0)="EXIT").

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 27, 2026 04:33
@caomengxuan666

Copy link
Copy Markdown
Member Author

Verified post-merge: patch.cpp conflict resolved (exact_position path kept with ignore_ws plumbed through), test-file seam rebalanced. Build green; touched-area tests pass. Two branch-side expectations corrected to GNU: patch -l contrast is fuzz-vs-clean (fuzz applies the whitespace-mismatched context anyway), and -s0 verbose prints 'sending signal EXIT' (sig2str(0)). Residual ctest failures = the 11 environment-bound ones identical on origin/main.

@caomengxuan666
caomengxuan666 merged commit 60d1e93 into main Oct 27, 2026
7 of 8 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/winx5-text branch October 27, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment