Repository navigation
fix(patch,touch,file,timeout): winx5-text batch (#1381/#1382/#1383/#1384) - #1399
Merged
Merged
Conversation
# 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
marked this pull request as ready for review
October 27, 2026 04:33
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. |
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.
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:
e96869bpatch: real-l/--ignore-whitespacematching;-c/-n/-eformat forcing ("Only garbage" rc2);-V/--version-controlfull value range incl. the measured none/off->numbered quirk + VERSION_CONTROL fallback;--prefix/--basename-prefixbackup naming;--quoting-style10-value validation applied to patching/rejects lines;--getnumeric validation;--read-onlyvalidation + fail pre-checkecc49a5touch:-d ''-> today 00:00 in the effective zone;@epochfractions to 100ns ticks with whole-value sign; fortnight = 14 days; weekday items (bare/next/last, full + abbreviated names, incl. after a fixed date)6607af8file: extension maps DELETED — classification is content-only (fs -> magic -> shebang -> JSON -> text analysis with file-5.45 wordings and CRLF suffixes); missing operand -> stdoutcannot openline + exit 0; no operands -> Usage + rc1. Two existing tests that encoded the old bugs updated in place, new pins added5c69630timeout: full Linux signal table (names, RTMIN+n/RTMAX-n arithmetic, IOT/POLL/LOST/UNUSED aliases,-llisting); numeric specs valid only for 0..31 and 34..64, others rc125 in the pinned shapeFixes #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 runharness/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.