Skip to content

fix(cp): restore the C++ product path until the Rust wire passes symlink recreation (#1757) - #1795

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/revert-cp-wire
Nov 16, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/revert-cp-wire

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Closes #1757. Removes cp from WINUXCMD_RUST2_COMMANDS and restores the C++ handler; the Rust cp library, its 98-row gate and tests stay on main for a follow-up reland once the six no-deref/archive symlink cells pass under the wired path.

…ink recreation (#1757)

- removes cp from WINUXCMD_RUST2_COMMANDS
- restores src/commands/cp.cpp from a32889f^ (the Rust library and its 98-row gate stay on main)
- reason: 6 CI ctest cells (no-deref/archive symlink recreation) regress only under the wired path
@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 16, 2026 06:06
@caomengxuan666
caomengxuan666 merged commit 55d85ba into main Nov 16, 2026
8 of 10 checks passed
caomengxuan666 added a commit that referenced this pull request Nov 16, 2026
… merged C++ surface PRs (#1781 #1786 #1795 family)

The gate's own protocol for deliberate new source strings: record the
growth so the ratchet stays honest (it may only shrink as translation
sync batches land in unixwin/winuxcmd-i18n). The 22 zh-CN legacy.*
missing items come from the C++ command surface that landed with the
/dev synthesis, ps -W and cp-revert wave — all merged by owner; their
zh-CN translations ride the next i18n sync batch (same choreography as
the du keys earlier today).

Verified locally on origin/main (f6d5386): same 22-item set as the
failing CI run 43814990474; en-US side clean.
aphrody-dev pushed a commit to aphrody-labs/WinuxCmd that referenced this pull request Nov 17, 2026
…arget directory

Restores GNU cp invariants lost in the unixwin#1795 C++ fallback:
1. File operands stay literal instead of globbing through glob_expand;
   non-matching wildcard literals fail stat with ENOENT as GNU specifies.
2. --strip-trailing-slashes only strips trailing slashes from source file
   operands when copying into a target directory (matching coreutils cp.c
   remove_trailing_slashes gate); file-to-file copies preserve the trailing
   slash so stat fails with cannot stat on regular files.

Fixes lines 7-11 of task prompt (cp_strip_trailing_slashes_allows_file_source_with_trailing_separator and cp_wildcard_sources_expand).

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

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
caomengxuan666 pushed a commit that referenced this pull request Nov 17, 2026
- CMake rust2 surface is 68 applets, not 69 (sed range picked up a comment)
- ls/rm blockers (#1639-#1646, #1650/#1672) are all CLOSED; both are wire-only
- cp #1757 was closed by the #1795 revert; re-land needs a new/open issue
- #1488 is CLOSED, so #1488(waveN) is scheduling, not a defer anchor
- complete A-class ordering: 71 implementations + 2 wire-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cp no-dereference symlink recreation regressed after #1743 (rust2 cp wire)

1 participant